From: Jim Meyering Date: Sat, 1 Aug 1998 15:47:26 +0000 (+0000) Subject: (my_setlocale): Guard definition within #ifdef ENABLE_NLS. X-Git-Tag: FILEUTILS-3_16t~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c69ef7978a2cce88ba8ba1fbbeb4a657aafcd2;p=thirdparty%2Fcoreutils.git (my_setlocale): Guard definition within #ifdef ENABLE_NLS. --- diff --git a/src/sort.c b/src/sort.c index c9882313de..ce5aa15364 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2429,7 +2429,7 @@ key_init (struct keyfield *key) /* strdup and return the result of setlocale, but guard against a NULL return value. If setlocale returns NULL, strdup FAIL_VAL instead. */ -#if !defined __GLIBC__ || __GLIBC__ < 2 +#if defined ENABLE_NLS && ( !defined __GLIBC__ || __GLIBC__ < 2 ) static inline char * my_setlocale (const char *locale, const char *fail_val) {