From 191d2e11ad2d18ec5c4fb4cc183920860b410d22 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Fri, 16 Mar 2018 14:07:05 -0700 Subject: 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 --- dist/Android.bp | 1 + 1 file changed, 1 insertion(+) 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", ], -- cgit v1.2.3