net-misc/wget: add gnulib cygwin patch (#584312)
authorMichael Haubenwallner <haubi@gentoo.org>
Mon, 23 May 2016 13:24:47 +0000 (15:24 +0200)
committerMichael Haubenwallner <haubi@gentoo.org>
Mon, 30 May 2016 10:21:28 +0000 (12:21 +0200)
Package-Manager: portage-2.2.26

net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch [new file with mode: 0644]
net-misc/wget/wget-1.17.1-r1.ebuild

diff --git a/net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch b/net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch
new file mode 100644 (file)
index 0000000..0755136
--- /dev/null
@@ -0,0 +1,22 @@
+https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00065.html
+
+--- gnulib/lib/sys_select.in.h.orig    2014-08-03 15:31:22.000000000 +0200
++++ gnulib/lib/sys_select.in.h 2016-05-19 12:57:51.243064700 +0200
+@@ -81,7 +81,7 @@
+    Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
+    in <sys/time.h>.
+    But avoid namespace pollution on glibc systems.  */
+-# ifndef __GLIBC__
++# if !(defined __GLIBC__ || defined __NEWLIB__)
+ #  include <sys/time.h>
+ # endif
+ 
+@@ -102,7 +102,7 @@
+    But avoid namespace pollution on glibc 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 __UCLIBC__)
++#if !((defined __GLIBC__ || defined __NEWLIB__) && !defined __UCLIBC__)
+ # include <signal.h>
+ #endif
+ 
index c9bfcbcea225b54a3ef85ba82a33318ba8b52b7b..ad8ff3164b6ccd92f4c05c92b2a16d72529c4bea 100644 (file)
@@ -51,6 +51,7 @@ pkg_setup() {
 
 src_prepare() {
        epatch "${FILESDIR}"/${P}-progress-bar-segv.patch
+       epatch "${FILESDIR}"/${P}-gnulib-cygwin-sys_select.patch
 }
 
 src_configure() {