aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2019-01-23 16:31:32 -0800
committerGitHub <noreply@github.com>2019-01-23 16:31:32 -0800
commit4c236e2a2e8167a71dfda47321aadbd54ddd9abd (patch)
treea411873e90f2df0511dcfc59deb6b87a4d65b152
parent69892980b25309b537eedb6be20c8872ca559751 (diff)
parentea29ebaf375b2bd26c0132cd483b05d6339e8f91 (diff)
downloadvcpkg-4c236e2a2e8167a71dfda47321aadbd54ddd9abd.tar.gz
vcpkg-4c236e2a2e8167a71dfda47321aadbd54ddd9abd.zip
Merge pull request #5207 from huangqinjin/fix-tiff-uwp
fix tiff build for uwp
-rw-r--r--ports/tiff/fix-stddef.patch13
-rw-r--r--ports/tiff/portfile.cmake1
2 files changed, 14 insertions, 0 deletions
diff --git a/ports/tiff/fix-stddef.patch b/ports/tiff/fix-stddef.patch
new file mode 100644
index 000000000..a9c2ddf0b
--- /dev/null
+++ b/ports/tiff/fix-stddef.patch
@@ -0,0 +1,13 @@
+diff --git a/port/lfind.c port/lfind.c
+index 087dfa9..20fa8b4 100644
+--- a/port/lfind.c
++++ b/port/lfind.c
+@@ -38,7 +38,7 @@
+ #ifdef _WIN32_WCE
+ # include <wce_types.h>
+ #else
+-# include <sys/types.h>
++# include <stddef.h>
+ #endif
+
+ #ifndef NULL
diff --git a/ports/tiff/portfile.cmake b/ports/tiff/portfile.cmake
index 92ba3963c..6e46ee6d2 100644
--- a/ports/tiff/portfile.cmake
+++ b/ports/tiff/portfile.cmake
@@ -15,6 +15,7 @@ vcpkg_extract_source_archive_ex(
add-component-options.patch
fix-cxx-shared-libs.patch
crt-secure-no-deprecate.patch
+ fix-stddef.patch
)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")