diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-06-28 04:19:22 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-06-28 04:19:22 +0200 |
commit | c4f76880e9589a757a194c19a4526599dfe71f50 (patch) | |
tree | c66def0aa296e781c51dfc51c8bba9d8ac51189b /tests/zerosize-ptr.h | |
parent | 76ef1d8e3249e82a6965fd17157bee00a7857ff3 (diff) | |
parent | 7b65dbd4ebade81d504cfe5e681292a58ad1fdf0 (diff) |
Update upstream source from tag 'upstream/0.9.10'
Update to upstream version '0.9.10'
with Debian dir 9736048cfd7ea97640dba10ba42a3839100c5694
Diffstat (limited to 'tests/zerosize-ptr.h')
-rw-r--r-- | tests/zerosize-ptr.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/zerosize-ptr.h b/tests/zerosize-ptr.h index e4867e9a..d5592c58 100644 --- a/tests/zerosize-ptr.h +++ b/tests/zerosize-ptr.h @@ -18,6 +18,19 @@ argument. Therefore this file produces a non-NULL pointer which cannot be dereferenced, if possible. */ +/* On Android, when targeting Android 4.4 or older with a GCC toolchain, + prevent a compilation error + "error: call to 'mmap' declared with attribute error: mmap is not + available with _FILE_OFFSET_BITS=64 when using GCC until android-21. + Either raise your minSdkVersion, disable _FILE_OFFSET_BITS=64, or + switch to Clang." + The files that we access in this compilation unit are less than 2 GB + large. */ +#if defined __ANDROID__ +# undef _FILE_OFFSET_BITS +# undef __USE_FILE_OFFSET64 +#endif + #include <stdlib.h> /* Test whether mmap() and mprotect() are available. |