uapi:io_uring.h: don't force linux/time_types.h for userspace
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 uapi:io_uring.h: don't force linux/time_types.h for userspace
include/uapi/linux/io_uring.h is synced 1:1 into
liburing:src/include/liburing/io_uring.h.
liburing has a configure check to detect the need for linux/time_types.h.
Fixes 78a861b94959 ("io_uring: add sync cancelation API through io_uring_register()")
Signed-off-by Stefan Metzmacher <[email protected]>
--- include/uapi/linux/io_uring.h | 9 +++++++++ 1 file changed, 9 insertions(+)
include/uapi/linux/io_uring.h +9 -0
@@ -10,7 +10,16 @@#include <linux/fs.h> #include <linux/types.h> +/* +* this file is shared with liburing and that has to autodetect +* if linux/time_types.h is available +*/ +#ifdef __KERNEL__ +#define HAVE_LINUX_TIME_TYPES_H 1 +#endif +#ifdef HAVE_LINUX_TIME_TYPES_H #include <linux/time_types.h> +#endif #ifdef __cplusplusextern "C" {
Signature · 1 line
2.34.1