From cc67478e282ac5c46a1005474cca51342efe1397 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 12 Nov 2014 22:42:22 +0000 Subject: Fix localealias.c fgets_unlocked namespace (bug 17589). intl/localealias.c is brought in by ISO C functions, but uses fgets_unlocked, which is not an ISO C function. This patch changes this to use __fgets_unlocked. Tested for x86_64 (testsuite, and that stripped installed shared libraries are unchanged by the patch). [BZ #17589] * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead of fgets_unlocked. --- intl/localealias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intl') diff --git a/intl/localealias.c b/intl/localealias.c index 9ab432885b..1d3f8ebabf 100644 --- a/intl/localealias.c +++ b/intl/localealias.c @@ -84,7 +84,7 @@ __libc_lock_define_initialized (static, lock); /* Some optimizations for glibc. */ #ifdef _LIBC # define FEOF(fp) feof_unlocked (fp) -# define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) +# define FGETS(buf, n, fp) __fgets_unlocked (buf, n, fp) #else # define FEOF(fp) feof (fp) # define FGETS(buf, n, fp) fgets (buf, n, fp) -- cgit v1.2.3