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