aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cgns/linux_lfs.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cgns/linux_lfs.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cgns/linux_lfs.patch')
-rw-r--r--vcpkg/ports/cgns/linux_lfs.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/cgns/linux_lfs.patch b/vcpkg/ports/cgns/linux_lfs.patch
new file mode 100644
index 0000000..af3d411
--- /dev/null
+++ b/vcpkg/ports/cgns/linux_lfs.patch
@@ -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)