view src/stable-octave-1-fixes.patch @ 2941:8f0c44add205

rename octave-stable to stable-octave to avoid conflict with patch file
author John W. Eaton <jwe@octave.org>
date Fri, 04 Jan 2013 14:48:15 -0500
parents src/octave-stable-1-fixes.patch@30a5052213e6
children
line wrap: on
line source

--- a/libgnu/unistd.in.h	2012-12-03 12:57:36.000000000 -0500
+++ b/libgnu/unistd.in.h	2012-12-03 14:22:38.421760035 -0500
@@ -19,23 +19,7 @@
 #endif
 @PRAGMA_COLUMNS@
 
-/* Special invocation convention:
-   - On mingw, several headers, including <winsock2.h>, include <unistd.h>,
-     but we need to ensure that both the system <unistd.h> and <winsock2.h>
-     are completely included before we replace gethostname.  */
-#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
-  && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H
-/* <unistd.h> is being indirectly included for the first time from
-   <winsock2.h>; avoid declaring any overrides.  */
-# if @HAVE_UNISTD_H@
-#  @INCLUDE_NEXT@ @NEXT_UNISTD_H@
-# else
-#  error unexpected; report this to bug-gnulib@gnu.org
-# endif
-# define _GL_WINSOCK2_H_WITNESS
-
-/* Normal invocation.  */
-#elif !defined _@GUARD_PREFIX@_UNISTD_H
+#if !defined _@GUARD_PREFIX@_UNISTD_H
 
 /* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_UNISTD_H@