This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] posix/confstr.c: Fix compile error with gcc-3.3
- From: GOTO Masanori <gotom at debian dot or dot jp>
- To: libc-alpha at sources dot redhat dot com
- Cc: gotom at debian dot or dot jp
- Date: Tue, 30 Nov 2004 09:31:24 +0900
- Subject: [PATCH] posix/confstr.c: Fix compile error with gcc-3.3
This patch fixes posix/confstr.c compile error with <= gcc-3.3.
confstr.c:116:38: missing terminating ' character
confstr.c:130:39: missing terminating ' character
confstr.c:144:37: missing terminating ' character
confstr.c:158:39: missing terminating ' character
confstr.c:172:40: missing terminating ' character
confstr.c:186:38: missing terminating ' character
Regards,
-- gotom
2004-11-30 GOTO Masanori <gotom@debian.or.jp>
* posix/confstr.c: Enclose #error message with double quote
for gcc-3.3 and lower.
Index: posix/confstr.c
===================================================================
RCS file: /cvs/glibc/libc/posix/confstr.c,v
retrieving revision 1.17
diff -u -r1.17 confstr.c
--- posix/confstr.c 26 Nov 2004 08:15:12 -0000 1.17
+++ posix/confstr.c 30 Nov 2004 00:10:57 -0000
@@ -113,7 +113,7 @@
case _CS_POSIX_V6_ILP32_OFF32_CFLAGS:
#ifdef __ILP32_OFF32_CFLAGS
# if _POSIX_V6_ILP32_OFF32 == -1
-# error __ILP32_OFF32_CFLAGS shouldn't be defined
+# error "__ILP32_OFF32_CFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_ILP32_OFF32
if (__sysconf (_SC_V6_ILP32_OFF32) < 0)
break;
@@ -127,7 +127,7 @@
case _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS:
#ifdef __ILP32_OFFBIG_CFLAGS
# if _POSIX_V6_ILP32_OFFBIG == -1
-# error __ILP32_OFFBIG_CFLAGS shouldn't be defined
+# error "__ILP32_OFFBIG_CFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_ILP32_OFFBIG
if (__sysconf (_SC_V6_ILP32_OFFBIG) < 0)
break;
@@ -141,7 +141,7 @@
case _CS_POSIX_V6_LP64_OFF64_CFLAGS:
#ifdef __LP64_OFF64_CFLAGS
# if _POSIX_V6_LP64_OFF64 == -1
-# error __LP64_OFF64_CFLAGS shouldn't be defined
+# error "__LP64_OFF64_CFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_LP64_OFF64
if (__sysconf (_SC_V6_LP64_OFF64) < 0)
break;
@@ -155,7 +155,7 @@
case _CS_POSIX_V6_ILP32_OFF32_LDFLAGS:
#ifdef __ILP32_OFF32_LDFLAGS
# if _POSIX_V6_ILP32_OFF32 == -1
-# error __ILP32_OFF32_LDFLAGS shouldn't be defined
+# error "__ILP32_OFF32_LDFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_ILP32_OFF32
if (__sysconf (_SC_V6_ILP32_OFF32) < 0)
break;
@@ -169,7 +169,7 @@
case _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS:
#ifdef __ILP32_OFFBIG_LDFLAGS
# if _POSIX_V6_ILP32_OFFBIG == -1
-# error __ILP32_OFFBIG_LDFLAGS shouldn't be defined
+# error "__ILP32_OFFBIG_LDFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_ILP32_OFFBIG
if (__sysconf (_SC_V6_ILP32_OFFBIG) < 0)
break;
@@ -183,7 +183,7 @@
case _CS_POSIX_V6_LP64_OFF64_LDFLAGS:
#ifdef __LP64_OFF64_LDFLAGS
# if _POSIX_V6_LP64_OFF64 == -1
-# error __LP64_OFF64_LDFLAGS shouldn't be defined
+# error "__LP64_OFF64_LDFLAGS shouldn't be defined"
# elif !defined _POSIX_V6_LP64_OFF64
if (__sysconf (_SC_V6_LP64_OFF64) < 0)
break;