diff options
author | George Burgess IV <gbiv@google.com> | 2018-03-16 14:07:05 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2018-03-20 15:56:42 -0700 |
commit | 191d2e11ad2d18ec5c4fb4cc183920860b410d22 (patch) | |
tree | 3977ee735d02068a377af626e4601d05757cdbab | |
parent | 10ffacb2af3f94a24a72f5476729df946396ef45 (diff) | |
download | sqlite-191d2e11ad2d18ec5c4fb4cc183920860b410d22.tar.gz |
Apply a workaround for Bionic's ioctl signedness hack
Sqlite takes ioctl's address, and immediately casts it to a type
incompatible with either `int(*)(int, int, ...)` or `int(*)(int,
unsigned, ...)`. So, clang doesn't know what overload to pick, even
though they both ultimately point to the same function.
Bug: https://github.com/android-ndk/ndk/issues/402
Test: m on internal master
Change-Id: I67aa885c835a3703d3ed23b5c3f24d3387c51be2
-rw-r--r-- | dist/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dist/Android.bp b/dist/Android.bp index 2211d1f..93091ca 100644 --- a/dist/Android.bp +++ b/dist/Android.bp @@ -37,6 +37,7 @@ cc_defaults { "-DSQLITE_DEFAULT_FILE_PERMISSIONS=0600", "-DSQLITE_SECURE_DELETE", "-DSQLITE_ENABLE_BATCH_ATOMIC_WRITE", + "-DBIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD", "-Wno-unused-parameter", "-Werror", ], |