Fix the "static declaration of 'gettid' follows non-static declaration" error when building with Android NDK r16.
@@ -135,7 +135,7 @@ else ()
endif ()
set (BSON_EXTRA_ALIGN 1)
CHECK_SYMBOL_EXISTS(SYS_gettid sys/syscall.h BSON_HAVE_SYSCALL_TID)
- if (NOT BSON_HAVE_SYSCALL_TID OR APPLE)
+ if (NOT BSON_HAVE_SYSCALL_TID OR APPLE OR ANDROID)
set (BSON_HAVE_SYSCALL_TID 0)
endif ()
CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
