]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't assume _GNU_SOURCE is defined through configure.in.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Apr 2003 10:41:29 +0000 (10:41 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:21 +0000 (12:10 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/relocatable.c
gettext-tools/lib/ChangeLog
gettext-tools/lib/relocatable.c

index b71af67c7ce927f31338fcf4c08aafe59e73529c..a34bcd63f60a30ccc387bbde19b830da6372f0b1 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-05  Bruno Haible  <bruno@clisp.org>
+
+       * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets
+       declared by <stdio.h>.
+
 2003-04-04  Bruno Haible  <bruno@clisp.org>
 
        * gettextP.h [!_LIBC]: Remove declarations of exported libintl_*
index 66c6a13419234276dc39325d035368ae7af77e3c..fb8e16ed3c6cbc067f77a79806ccab409d884a7e 100644 (file)
    USA.  */
 
 
+/* Tell glibc's <stdio.h> to provide a prototype for getline().
+   This must come before <config.h> because <config.h> may include
+   <features.h>, and once <features.h> has been included, it's too late.  */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE   1
+#endif
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
index 8546ea7499e23bda552acb6212fee8d9653584a0..e7f62b5748a8cb9ceeaf537640a3b8b934671604 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-05  Bruno Haible  <bruno@clisp.org>
+
+       * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets
+       declared by <stdio.h>.
+
 2003-03-30  Bruno Haible  <bruno@clisp.org>
 
        * xgetcwd.c: Include <unistd.h>.
index 66c6a13419234276dc39325d035368ae7af77e3c..fb8e16ed3c6cbc067f77a79806ccab409d884a7e 100644 (file)
    USA.  */
 
 
+/* Tell glibc's <stdio.h> to provide a prototype for getline().
+   This must come before <config.h> because <config.h> may include
+   <features.h>, and once <features.h> has been included, it's too late.  */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE   1
+#endif
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif