summaryrefslogtreecommitdiff
path: root/patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2016-12-06 19:33:44 (GMT)
committerGitHub <noreply@github.com>2016-12-06 19:33:44 (GMT)
commitda3f8c4ec5345b709a330eebab01cd62c574295d (patch)
tree4ad81b0fed8e92dc49061d11d1f67ff7be0b1b2d /patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch
parentee4446c7aea3a9ec0d431377324e8615b61c4ba3 (diff)
parent7e44983388a85ba2ef721b302f97b8accad23ba6 (diff)
Merge pull request #494 from stilor/cygwin-fixes
Cygwin fixes
Diffstat (limited to 'patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch')
-rw-r--r--patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch b/patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch
new file mode 100644
index 0000000..caaf0a0
--- /dev/null
+++ b/patches/gettext/0.19.7/150-Fix-Cygwin-sys-select-2.patch
@@ -0,0 +1,26 @@
+--- a/gettext-tools/gnulib-lib/sys_select.in.h
++++ b/gettext-tools/gnulib-lib/sys_select.in.h
+@@ -82,8 +82,8 @@
+ Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
+ in <sys/time.h>.
+ But avoid namespace pollution on glibc systems and "unknown type
+- name" problems on Cygwin. */
+-# if !(defined __GLIBC__ || defined __CYGWIN__)
++ name" problems on newlib systems. */
++# if !(defined __GLIBC__ || defined __NEWLIB__)
+ # include <sys/time.h>
+ # endif
+
+@@ -102,10 +102,10 @@
+
+ /* Get definition of 'sigset_t'.
+ But avoid namespace pollution on glibc systems and "unknown type
+- name" problems on Cygwin.
++ name" problems on newlib systems..
+ Do this after the include_next (for the sake of OpenBSD 5.0) but before
+ the split double-inclusion guard (for the sake of Solaris). */
+-#if !((defined __GLIBC__ || defined __CYGWIN__) && !defined __UCLIBC__)
++#if !((defined __GLIBC__ || defined __NEWLIB__) && !defined __UCLIBC__)
+ # include <signal.h>
+ #endif
+