summaryrefslogtreecommitdiff
path: root/src/include/liburing/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/liburing/compat.h')
-rw-r--r--src/include/liburing/compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/liburing/compat.h b/src/include/liburing/compat.h
index d10d7a8..7eaad41 100644
--- a/src/include/liburing/compat.h
+++ b/src/include/liburing/compat.h
@@ -6,4 +6,13 @@
typedef int __kernel_rwf_t;
#endif
+#if !defined(CONFIG_HAVE_KERNEL_TIMESPEC)
+struct __kernel_timespec {
+ int64_t tv_sec;
+ long long tv_nsec;
+};
+#else
+#include <linux/time_types.h>
+#endif
+
#endif