diff options
author | Akilesh Kailash <akailash@google.com> | 2022-01-05 05:07:59 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-01-05 05:07:59 +0000 |
commit | bb9b312cd50a65c5ee7cc96d4500ad5d0d5feefb (patch) | |
tree | f9562fdba04d31b18892b8c107995c3e97be8493 | |
parent | c38ef056f0aa8774a663df99b253e94436ac0fc9 (diff) | |
parent | 032ff79dc4cc37c73e1ea4e89177398ee854a7df (diff) | |
download | liburing-bb9b312cd50a65c5ee7cc96d4500ad5d0d5feefb.tar.gz |
Support host compilation am: 032ff79dc4
Original change: https://android-review.googlesource.com/c/platform/external/liburing/+/1933956
Change-Id: I53fbbbe7391a9ce0fc458c500059653ce804bd7d
-rw-r--r-- | Android.bp | 3 | ||||
-rw-r--r-- | src/include/liburing/compat.h | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -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 |