aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMake/TdSetUpCompiler.cmake
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-05-11 19:03:57 +0300
committerlevlam <levlam@telegram.org>2022-05-11 19:03:57 +0300
commitd85037f377e4299abcc627ab355d5848cc1b5de5 (patch)
tree3fb65f54396863630b3344bb656c8c939e9e54da /CMake/TdSetUpCompiler.cmake
parent33d1dfec0ecd12e1c5e87cb01ffc20373fbeeee3 (diff)
Enable _FILE_OFFSET_BITS even on Android.
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
-rw-r--r--CMake/TdSetUpCompiler.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake
index 728615e27..d9d67da33 100644
--- a/CMake/TdSetUpCompiler.cmake
+++ b/CMake/TdSetUpCompiler.cmake
@@ -85,9 +85,8 @@ function(td_set_up_compiler)
add_definitions(-D_DEFAULT_SOURCE=1 -DFD_SETSIZE=4096)
endif()
- if (NOT ANDROID) # _FILE_OFFSET_BITS is broken in NDK r15, r15b and r17 and doesn't work prior to Android 7.0
- add_definitions(-D_FILE_OFFSET_BITS=64)
- endif()
+ # _FILE_OFFSET_BITS is broken in Android NDK r15, r15b and r17 and doesn't work prior to Android 7.0
+ add_definitions(-D_FILE_OFFSET_BITS=64)
if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lsocket -lnsl")