diff options
| author | levlam <levlam@telegram.org> | 2022-07-26 10:33:25 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-07-26 10:33:25 +0300 |
| commit | 9c6f4577151972aac47769c915cdc1ea8419e866 (patch) | |
| tree | a701632bcb70e6e5dd3af40b98a48ea6bd1fcebe /CMake/TdSetUpCompiler.cmake | |
| parent | 262ea91d9a65e5310a5f30ebb2e577daf7741fc0 (diff) | |
Explicitly define _GNU_SOURCE.
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index d9d67da33..40c667e32 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -88,6 +88,9 @@ function(td_set_up_compiler) # _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) + # _GNU_SOURCE might not be defined by g++ + add_definitions(-D_GNU_SOURCE) + if (CMAKE_SYSTEM_NAME STREQUAL "SunOS") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lsocket -lnsl") if (ILLUMOS) |
