/* Written by Simon Josefsson based on sysexits(3) man page */
-#ifndef _SYSEXITS_H
-#define _SYSEXITS_H
+#ifndef _GL_SYSEXITS_H
+#define _GL_SYSEXITS_H
#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. */
#endif
-#endif /* _SYSEXITS_H */
+#endif /* _GL_SYSEXITS_H */