Merge "liburing: Fix dependencies" into main
diff --git a/src/include/liburing/compat.h b/src/include/liburing/compat.h
index e492f46..5b4ca44 100644
--- a/src/include/liburing/compat.h
+++ b/src/include/liburing/compat.h
@@ -5,9 +5,24 @@
 #include <stdint.h>
 #include <inttypes.h>
 #include <linux/openat2.h>
+#include <linux/ioctl.h>
 
 typedef int __kernel_rwf_t;
 
-struct __kernel_timespec;
+#ifndef BLOCK_URING_CMD_DISCARD
+#define BLOCK_URING_CMD_DISCARD                        _IO(0x12, 0)
+#endif
+
+#ifndef __ANDROID__
+
+struct __kernel_timespec {
+        int64_t         tv_sec;
+        long long       tv_nsec;
+};
+
+#endif
+
+/* <linux/time_types.h> is not available, so it can't be included */
+#define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1
 
 #endif
diff --git a/src/include/liburing/io_uring_version.h b/src/include/liburing/io_uring_version.h
new file mode 100644
index 0000000..6705e52
--- /dev/null
+++ b/src/include/liburing/io_uring_version.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: MIT */
+#ifndef LIBURING_VERSION_H
+#define LIBURING_VERSION_H
+
+#define IO_URING_VERSION_MAJOR 2
+#define IO_URING_VERSION_MINOR 8
+
+#endif