early-access version 2853
This commit is contained in:
12
externals/vcpkg/ports/cgns/linux_lfs.patch
vendored
Executable file
12
externals/vcpkg/ports/cgns/linux_lfs.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 46446da8a..a3d8cd98f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -116,6 +116,7 @@ if (CGNS_ENABLE_LFS)
|
||||
else ()
|
||||
check_symbol_exists(open64 "sys/types.h;sys/stat.h;unistd.h" HAVE_OPEN64)
|
||||
check_symbol_exists(lseek64 "sys/types.h;unistd.h" HAVE_LSEEK64)
|
||||
+ add_definitions(-D_FILE_OFFSET_BITS=64 -D__LARGEFILE64_SOURCE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
|
||||
endif ()
|
||||
if (HAVE_OPEN64)
|
||||
add_compile_definitions(HAVE_OPEN64)
|
||||
Reference in New Issue
Block a user