Skip to content

Commit

Permalink
io_uring: uapi: Don't force linux/time_types.h for userspace
Browse files Browse the repository at this point in the history
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: 78a861b ("io_uring: add sync cancelation API through io_uring_register()")
Link: https://zxczxc.com/axboe/liburing/issues/708
Link: https://zxczxc.com/axboe/liburing/pull/709
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
  • Loading branch information
metze-samba authored and ammarfaizi2 committed Nov 15, 2022
1 parent 5576035 commit 938f138
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/uapi/linux/io_uring.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@

#include <linux/fs.h>
#include <linux/types.h>
/*
* This file is shared with liburing and it 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 __cplusplus
extern "C" {
Expand Down

0 comments on commit 938f138

Please sign in to comment.