aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libirecovery/003_fix_msvc.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/libirecovery/003_fix_msvc.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libirecovery/003_fix_msvc.patch')
-rw-r--r--vcpkg/ports/libirecovery/003_fix_msvc.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/libirecovery/003_fix_msvc.patch b/vcpkg/ports/libirecovery/003_fix_msvc.patch
new file mode 100644
index 0000000..66852ec
--- /dev/null
+++ b/vcpkg/ports/libirecovery/003_fix_msvc.patch
@@ -0,0 +1,25 @@
+diff --git a/src/libirecovery.c b/src/libirecovery.c
+index 45ff6f2..d9ff1e6 100644
+--- a/src/libirecovery.c
++++ b/src/libirecovery.c
+@@ -29,7 +29,9 @@
+ #include <string.h>
+ #include <inttypes.h>
+ #include <ctype.h>
++#ifndef _MSC_VER
+ #include <unistd.h>
++#endif
+ #include <sys/stat.h>
+
+ #include <libimobiledevice-glue/collection.h>
+@@ -59,6 +61,10 @@
+
+ #include "libirecovery.h"
+
++#ifdef _MSC_VER
++#define strcasecmp _stricmp
++#endif
++
+ struct irecv_client_private {
+ int debug;
+ int usb_config;