diff options
author | hyc <hyc@symas.com> | 2017-04-12 23:55:29 +0100 |
---|---|---|
committer | hyc <hyc@symas.com> | 2017-04-12 23:55:29 +0100 |
commit | 6c72d6a05810487859feef55c8593443ae3ef2be (patch) | |
tree | 2d1fb472f1746e020faa06e0801f182e2e7a9353 /external/db_drivers/liblmdb/mdb.c | |
parent | Fix ARM64 identification (diff) | |
download | monero-6c72d6a05810487859feef55c8593443ae3ef2be.tar.xz |
Fix Android recognition
The official macro is __ANDROID__; ANDROID may or may not be defined.
Diffstat (limited to 'external/db_drivers/liblmdb/mdb.c')
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c index c2408f917..3552bd2a9 100644 --- a/external/db_drivers/liblmdb/mdb.c +++ b/external/db_drivers/liblmdb/mdb.c @@ -137,7 +137,7 @@ typedef SSIZE_T ssize_t; #include <unistd.h> #endif -#if defined(__sun) || defined(ANDROID) +#if defined(__sun) || defined(__ANDROID__) /* Most platforms have posix_memalign, older may only have memalign */ #define HAVE_MEMALIGN 1 #include <malloc.h> @@ -153,7 +153,7 @@ typedef SSIZE_T ssize_t; # define MDB_USE_SYSV_SEM 1 # endif # define MDB_FDATASYNC fsync -#elif defined(ANDROID) +#elif defined(__ANDROID__) # define MDB_FDATASYNC fsync #endif @@ -298,7 +298,7 @@ union semun { */ #ifndef MDB_USE_ROBUST /* Android currently lacks Robust Mutex support. So does glibc < 2.4. */ -# if defined(MDB_USE_POSIX_MUTEX) && (defined(ANDROID) || \ +# if defined(MDB_USE_POSIX_MUTEX) && (defined(__ANDROID__) || \ (defined(__GLIBC__) && GLIBC_VER < 0x020004)) # define MDB_USE_ROBUST 0 # else |