We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d381765 + 3752be7 commit 94eaa57Copy full SHA for 94eaa57
CMakeLists.txt
@@ -151,6 +151,12 @@ add_compile_definitions(
151
152
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSQLITE_OMIT_LOAD_EXTENSION=1")
153
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
+
160
if (WIN32)
161
if (MSVC)
162
if (NOT ICONV_DIR)
0 commit comments