Skip to content

Commit 94eaa57

Browse files
committed
Merge branch 'master' of github.com:doxygen/doxygen
2 parents d381765 + 3752be7 commit 94eaa57

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ add_compile_definitions(
151151

152152
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSQLITE_OMIT_LOAD_EXTENSION=1")
153153

154+
# Use 64-bit off_t on 32-bit Linux
155+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
156+
# ensure 64bit offsets are used for filesystem accesses for 32bit compilation
157+
add_compile_definitions(_FILE_OFFSET_BITS=64)
158+
endif()
159+
154160
if (WIN32)
155161
if (MSVC)
156162
if (NOT ICONV_DIR)

0 commit comments

Comments
 (0)