Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Fixed build issue with NDK r15 or higher.
Browse files Browse the repository at this point in the history
- Since NDK r15c, some methods are not defined if API version is lower than 21 and _FILE_OFFSET_BITS=64. See following link. android/ndk#477
  • Loading branch information
hideki committed Sep 6, 2017
1 parent 978d58c commit cf448c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ else()
add_definitions(-DSQLCIPHER_CRYPTO_MBEDTLS)
endif()

if(ANDROID)
# See: https://github.com/android-ndk/ndk/issues/477
add_definitions(-D_FILE_OFFSET_BITS=32)
endif()

set(SRC_FILES src/c/sqlite3.c)
if(NOT APPLE)
set(SRC_FILES ${SRC_FILES} src/c/crypto_mbedtls.c)
Expand Down

0 comments on commit cf448c3

Please sign in to comment.