We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1606726 + 3d7323f commit 9df9133Copy full SHA for 9df9133
contrib/liburing
contrib/liburing-cmake/CMakeLists.txt
@@ -33,6 +33,7 @@ set (LIBURING_CONFIG_HAS_KERNEL_TIMESPEC FALSE)
33
set (LIBURING_CONFIG_HAS_OPEN_HOW FALSE)
34
set (LIBURING_CONFIG_HAS_STATX FALSE)
35
set (LIBURING_CONFIG_HAS_GLIBC_STATX FALSE)
36
+set (LIBURING_CONFIG_HAS_DISCARD_CMD FALSE)
37
38
configure_file (compat.h.in ${LIBURING_COMPAT_HEADER})
39
contrib/liburing-cmake/compat.h.in
@@ -47,4 +47,14 @@ struct open_how {
47
#include <sys/stat.h>
48
#endif
49
50
+#if !defined(LIBURING_CONFIG_HAS_DISCARD_CMD)
51
+#include <linux/ioctl.h>
52
+
53
+#ifndef BLOCK_URING_CMD_DISCARD
54
+#define BLOCK_URING_CMD_DISCARD _IO(0x12, 0)
55
+#endif
56
+#else
57
+#include <linux/blkdev.h>
58
59
60
0 commit comments