argp: fix compilation of getopt
authorEric Blake <ebb9@byu.net>
Sat, 26 Sep 2009 22:28:24 +0000 (16:28 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 26 Sep 2009 22:29:58 +0000 (16:29 -0600)
* lib/getopt.in.h (includes): Use different guard than glibc.
Reported by Sergey Poznyakoff.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/getopt.in.h

index 385f048..f1bcf69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-09-26  Eric Blake  <ebb9@byu.net>
 
+       argp: fix compilation of getopt
+       * lib/getopt.in.h (includes): Use different guard than glibc.
+       Reported by Sergey Poznyakoff.
+
        doc: mention more cygwin 1.7 status
        * doc/posix-functions/access.texi (access): Mention cygwin 1.5
        bug.
index e23259c..15c213f 100644 (file)
@@ -16,7 +16,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _GETOPT_H
+#ifndef _GL_GETOPT_H
 
 #if __GNUC__ >= 3
 @PRAGMA_SYSTEM_HEADER@
 # @INCLUDE_NEXT@ @NEXT_GETOPT_H@
 #endif
 
-#ifndef _GETOPT_H
+#ifndef _GL_GETOPT_H
 
 #ifndef __need_getopt
-# define _GETOPT_H 1
+# define _GL_GETOPT_H 1
 #endif
 
 /* Standalone applications should #define __GETOPT_PREFIX to an