diff options
author | Bruno Haible <bruno@clisp.org> | 2007-04-03 00:50:15 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-04-03 00:50:15 +0000 |
commit | 3987d9cea1785abddfd3141e4ea79e7e93dee12d (patch) | |
tree | bde7a9d310acc8e766c023c32a728f0ced06fd93 /lib | |
parent | 70722fdcfc09b019cc2a568ed593f128aeb7ecd4 (diff) | |
download | gnulib-3987d9cea1785abddfd3141e4ea79e7e93dee12d.tar.gz |
Handle collision with EX_OK from IRIX <unistd.h>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sysexit_.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sysexit_.h b/lib/sysexit_.h index 56a28ede45..4fa6fcf4ce 100644 --- a/lib/sysexit_.h +++ b/lib/sysexit_.h @@ -22,6 +22,14 @@ #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. */ |