bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] gl_GETOPT broken for Solaris?


From: Paul Eggert
Subject: Re: [Bug-gnulib] gl_GETOPT broken for Solaris?
Date: Wed, 03 Nov 2004 11:09:58 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Albert Chin <address@hidden> writes:

> This worked. Please apply.

OK, I applied this change to coreutils:

2004-11-03  Paul Eggert  <address@hidden>

        * src/system.h: Don't #define and #undef getopt around <stdlib.h>,
        as this breaks the new regime that does "#define getopt rpl_getopt".
        Problem reported by Albert Chin for Solaris 9 with Sun cc in:
        http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00019.html
        I suppose this may cause problems on ancient hosts with
        incompatible getopt declarations, but we'll cross that bridge if
        the problem gets reported to us by someone who can test the fix.

--- src/system.h        8 Aug 2004 03:04:00 -0000       1.94
+++ src/system.h        3 Nov 2004 18:44:33 -0000       1.95
@@ -129,10 +129,7 @@ void *memrchr (const void *, int, size_t
 #endif
 
 #include <stdbool.h>
-
-#define getopt system_getopt
 #include <stdlib.h>
-#undef getopt
 
 /* The following test is to work around the gross typo in
    systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE




reply via email to

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