bug-gnulib
[Top][All Lists]
Advanced

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

Re: EX_OK collision


From: Bruno Haible
Subject: Re: EX_OK collision
Date: Tue, 3 Apr 2007 02:50:14 +0200
User-agent: KMail/1.5.4

Simon Josefsson wrote:
> > How about (b)?  It seems the simplest.
> >
> >>   (b) Create a replacement <sysexits.h> that does
> >>
> >>          #include <unistd.h>
> >>          #undef EX_OK
> >>          #include </usr/include/sysexits.h>
> 
> Yes, I think so too. ...

OK, after you both agreed, I commit this:


2007-04-02  Bruno Haible  <address@hidden>

        * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
        on IRIX.

*** lib/sysexit_.h      30 Mar 2007 23:56:06 -0000      1.5
--- lib/sysexit_.h      3 Apr 2007 00:45:38 -0000
***************
*** 22,27 ****
--- 22,35 ----
  
  #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.  */





reply via email to

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