aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2022-01-05 05:37:18 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-05 05:37:18 +0000
commitbf043b21279859690beb16a00b1fb385b0d9754a (patch)
treef9562fdba04d31b18892b8c107995c3e97be8493
parentc07854ac25a931e67c98e2cd2339d10f3d00b172 (diff)
parent6c973cd163b8f2262d01cb8b46245ed079f7606b (diff)
downloadliburing-bf043b21279859690beb16a00b1fb385b0d9754a.tar.gz
Support host compilation am: 032ff79dc4 am: bb9b312cd5 am: 6c973cd163
Original change: https://android-review.googlesource.com/c/platform/external/liburing/+/1933956 Change-Id: Idfb5cd1bf0359b4229e128f7bac3ba22ed02935e
-rw-r--r--Android.bp3
-rw-r--r--src/include/liburing/compat.h10
2 files changed, 10 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index a7aee0d..4a6eda9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,6 +31,7 @@ cc_defaults {
"-Werror",
"-Wno-pointer-arith",
],
+ include_dirs: ["bionic/libc/kernel"],
export_include_dirs: ["src/include"],
srcs: [
"src/queue.c",
@@ -48,4 +49,6 @@ cc_library_static {
recovery_available: true,
ramdisk_available: true,
vendor_ramdisk_available: true,
+ host_supported: true,
+ device_supported: true,
}
diff --git a/src/include/liburing/compat.h b/src/include/liburing/compat.h
index 1b19d4c..b54b6b2 100644
--- a/src/include/liburing/compat.h
+++ b/src/include/liburing/compat.h
@@ -2,8 +2,12 @@
#ifndef LIBURING_COMPAT_H
#define LIBURING_COMPAT_H
-#include <linux/time_types.h>
-
+#include <stdint.h>
#include <inttypes.h>
-#include <linux/openat2.h>
+#include <uapi/linux/openat2.h>
+
+typedef int __kernel_rwf_t;
+
+struct __kernel_timespec;
+
#endif