bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15023: Coreutils on IRIX


From: Paul Eggert
Subject: bug#15023: Coreutils on IRIX
Date: Tue, 06 Aug 2013 18:09:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

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
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]