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.
1 parent 84bc039 commit 5b0eac7Copy full SHA for 5b0eac7
src/CMakeLists.txt
@@ -44,6 +44,15 @@ function(add_libzsync2 NAME BUILD_TYPE)
44
if(LIBSOCKET_FOUND)
45
target_compile_definitions("${NAME}" PRIVATE HAVE_LIBSOCKET=1)
46
endif()
47
+
48
+ # largefile support à la gpgme
49
+ # libzsync uses off_t everywhere, this allows us to support files larger than 2GiB
50
+ # must(!) be public definitions, otherwise integrating libzsync2 elsewhere (e.g., AppImageUpdate) may lead to
51
+ # compiler errors because the off_t definitions differ
52
+ target_compile_definitions("${NAME}"
53
+ PUBLIC -D_FILE_OFFSET_BITS=64
54
+ PUBLIC -DLARGEFILE_SOURCE
55
+ )
56
endfunction()
57
58
add_libzsync2(libzsync2 SHARED)
0 commit comments