summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 3b80a2d..9dc2a24 100644
--- a/ev.c
+++ b/ev.c
@@ -450,8 +450,8 @@
#endif
#if __linux && EV_USE_IOURING
-# include <linux/fs.h>
-# ifndef RWF_SYNC
+# include <linux/version.h>
+# if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
# undef EV_USE_IOURING
# define EV_USE_IOURING 0
# endif