From: Bruno Haible Date: Mon, 7 Apr 2003 10:41:29 +0000 (+0000) Subject: Don't assume _GNU_SOURCE is defined through configure.in. X-Git-Tag: v0.12~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c6008894037c71e5911c5f34e330661dd1ee9bd;p=thirdparty%2Fgettext.git Don't assume _GNU_SOURCE is defined through configure.in. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index b71af67c7..a34bcd63f 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,8 @@ +2003-04-05 Bruno Haible + + * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets + declared by . + 2003-04-04 Bruno Haible * gettextP.h [!_LIBC]: Remove declarations of exported libintl_* diff --git a/gettext-runtime/intl/relocatable.c b/gettext-runtime/intl/relocatable.c index 66c6a1341..fb8e16ed3 100644 --- a/gettext-runtime/intl/relocatable.c +++ b/gettext-runtime/intl/relocatable.c @@ -18,6 +18,13 @@ USA. */ +/* Tell glibc's to provide a prototype for getline(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + #ifdef HAVE_CONFIG_H # include "config.h" #endif diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 8546ea749..e7f62b574 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-04-05 Bruno Haible + + * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets + declared by . + 2003-03-30 Bruno Haible * xgetcwd.c: Include . diff --git a/gettext-tools/lib/relocatable.c b/gettext-tools/lib/relocatable.c index 66c6a1341..fb8e16ed3 100644 --- a/gettext-tools/lib/relocatable.c +++ b/gettext-tools/lib/relocatable.c @@ -18,6 +18,13 @@ USA. */ +/* Tell glibc's to provide a prototype for getline(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + #ifdef HAVE_CONFIG_H # include "config.h" #endif