summaryrefslogtreecommitdiff
path: root/packages/zlib/1.2.11/110-no-_wopen-cygwin.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-07-13 07:38:03 (GMT)
committerGitHub <noreply@github.com>2017-07-13 07:38:03 (GMT)
commit45c5bb0f484cba724be2c6105801dcce9a1a82d9 (patch)
tree8fd1c8eaa2ef203009d72b6ca6348611dcc5ee1c /packages/zlib/1.2.11/110-no-_wopen-cygwin.patch
parent8f8e131d566af1f577d8fb6e62e6f121b7955472 (diff)
parentb32fcf7c1eea890a2bd3f88487f818ba241aabb1 (diff)
Merge pull request #767 from stilor/packages
Packages
Diffstat (limited to 'packages/zlib/1.2.11/110-no-_wopen-cygwin.patch')
-rw-r--r--packages/zlib/1.2.11/110-no-_wopen-cygwin.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/zlib/1.2.11/110-no-_wopen-cygwin.patch b/packages/zlib/1.2.11/110-no-_wopen-cygwin.patch
new file mode 100644
index 0000000..6704e3e
--- /dev/null
+++ b/packages/zlib/1.2.11/110-no-_wopen-cygwin.patch
@@ -0,0 +1,30 @@
+From a5e814c69315f3b7528418f6a5185c4f8a9dc250 Mon Sep 17 00:00:00 2001
+From: Alexey Neyman <stilor@att.net>
+Date: Wed, 15 Feb 2017 22:36:35 -0800
+Subject: [PATCH] Fix unresolved reference to _wopen on Cygwin
+
+The default Cygwin GCC/glibc do not provide _wopen. This seems to be
+part of Win32API, which is provided by x86-w64-mingw32-gcc - but that
+compiler does not define __CYGWIN__, it defines _WIN32.
+
+Signed-off-by: Alexey Neyman <stilor@att.net>
+---
+ gzguts.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gzguts.h b/gzguts.h
+index 990a4d2..6378d46 100644
+--- a/gzguts.h
++++ b/gzguts.h
+@@ -39,7 +39,7 @@
+ # include <io.h>
+ #endif
+
+-#if defined(_WIN32) || defined(__CYGWIN__)
++#if defined(_WIN32)
+ # define WIDECHAR
+ #endif
+
+--
+2.9.3
+