changeset 12074:272a2761593e

argp: fix compilation of getopt * lib/getopt.in.h (includes): Use different guard than glibc. Reported by Sergey Poznyakoff. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 26 Sep 2009 16:28:24 -0600
parents 17d15b9c2d1f
children c57301f2214b
files ChangeLog lib/getopt.in.h
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/getopt.in.h
+++ b/lib/getopt.in.h
@@ -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@
@@ -27,10 +27,10 @@
 # @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