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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Rainer M. Canavan" <coreutils <at> canavan.de>
Cc: 15023 <at> debbugs.gnu.org
Subject: bug#15023: Coreutils on IRIX
Date: Tue, 06 Aug 2013 18:09:52 -0700
Thanks, this is a tricky area, but does the following
patch fix that first problem?  If not, can you suggest
something similar?  I'm hoping that IRIX <sys/time.h>
#defines _SYS_TIME_H -- or perhaps it defines some other
symbol.

diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h
index 09c9601..c953428 100644
--- a/lib/sys_time.in.h
+++ b/lib/sys_time.in.h
@@ -27,8 +27,11 @@
 /* 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>.  */
-#ifdef _CYGWIN_SYS_TIME_H
+   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
 




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

Previous Next


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