aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cfitsio/0005-fix-link2019-error.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/cfitsio/0005-fix-link2019-error.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cfitsio/0005-fix-link2019-error.patch')
-rw-r--r--vcpkg/ports/cfitsio/0005-fix-link2019-error.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/cfitsio/0005-fix-link2019-error.patch b/vcpkg/ports/cfitsio/0005-fix-link2019-error.patch
new file mode 100644
index 0000000..0ab5886
--- /dev/null
+++ b/vcpkg/ports/cfitsio/0005-fix-link2019-error.patch
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fead70c..f05ae92 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -68,6 +68,7 @@ IF (USE_PTHREADS)
+ FIND_PACKAGE(pthreads REQUIRED)
+ INCLUDE_DIRECTORIES(${PTHREADS_INCLUDE_DIR})
+ ADD_DEFINITIONS(-D_REENTRANT)
++ set(PTHREADS_LIBRARY PThreads4W::PThreads4W)
+ ENDIF()
+
+ # Math library (not available in MSVC or MINGW)
+diff --git a/fitsio2.h b/fitsio2.h
+index 1adb17b..19f8511 100644
+--- a/fitsio2.h
++++ b/fitsio2.h
+@@ -26,7 +26,7 @@ extern int Fitsio_Pthread_Status;
+ #define FFUNLOCK1(lockname) (Fitsio_Pthread_Status = pthread_mutex_unlock(&lockname))
+ #define FFLOCK FFLOCK1(Fitsio_Lock)
+ #define FFUNLOCK FFUNLOCK1(Fitsio_Lock)
+-#define ffstrtok(str, tok, save) strtok_r(str, tok, save)
++#define ffstrtok(str, tok, save) strtok_s(str, tok, save)
+
+ #else
+ #define FFLOCK