GNU bug report logs - #15023
Coreutils on IRIX

Previous Next

Package: coreutils;

Reported by: "Rainer M. Canavan" <coreutils <at> canavan.de>

Date: Sun, 4 Aug 2013 23:33:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 15023 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Rainer M. Canavan" <coreutils <at> canavan.de>
Cc: 15023 <at> debbugs.gnu.org
Subject: Re: bug#15023: Coreutils on IRIX
Date: Thu, 08 Aug 2013 06:35:57 -0700
On 08/07/2013 04:40 PM, Rainer M. Canavan wrote:
> That patch doesn't apply to 8.21

Ah, sorry, it was against the latest gnulib.  How about this?

--- lib/sys_time.in.h	2013-02-07 08:57:25.000000000 -0800
+++ /home/eggert/src/gnu/gnulib/lib/sys_time.in.h	2013-08-08 06:34:22.098553044 -0700
@@ -24,6 +24,17 @@
 #endif
 @PRAGMA_COLUMNS@
 
+/* On Cygwin, <sys/time.h> includes itself recursively via <sys/select.h>.
+   Simply delegate to the system's header in this case; it is a no-op.
+   Without this extra ifdef, the C++ gettimeofday declaration below
+   would be a forward declaration in gnulib's nested <sys/time.h>.
+
+   On IRIX, <sys/time.h> also includes itself recursively via <sys/select.h>.
+   Again, delegate to the system's header in this case.  */
+#if defined _CYGWIN_SYS_TIME_H || (defined __sgi && defined _SYS_TIME_H)
+# @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@
+#else
+
 /* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_SYS_TIME_H@
 # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@
@@ -200,4 +211,5 @@
 #endif
 
 #endif /* _ <at> GUARD_PREFIX <at> _SYS_TIME_H */
+#endif /* _CYGWIN_SYS_TIME_H || (__sgi && _SYS_TIME_H) */
 #endif /* _ <at> GUARD_PREFIX <at> _SYS_TIME_H */





This bug report was last modified 6 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.