+2007-04-02 Bruno Haible <bruno@clisp.org>
+
+ * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
+ on IRIX.
+
2007-04-02 Bruno Haible <bruno@clisp.org>
* m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
#if @HAVE_SYSEXITS_H@
+/* IRIX 6.5 has an <unistd.h> that defines a macro EX_OK with a nonzero
+ value. Override it. See
+ <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00361.html> */
+# ifdef __sgi
+# include <unistd.h>
+# undef EX_OK
+# endif
+
# include @ABSOLUTE_SYSEXITS_H@
/* HP-UX 11 <sysexits.h> ends at EX_NOPERM. */