From d5c69ef7978a2cce88ba8ba1fbbeb4a657aafcd2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 1 Aug 1998 15:47:26 +0000 Subject: (my_setlocale): Guard definition within #ifdef ENABLE_NLS. --- src/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sort.c b/src/sort.c index c9882313d..ce5aa1536 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) { -- cgit v1.2.3-54-g00ecf