From b2d69f3f48311d89e9e2f3dba66bf19ca4709dc5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 31 Dec 2009 02:28:19 +0100 Subject: [PATCH] Fix compilation error on most platforms. --- ChangeLog | 7 +++++++ tests/test-localename.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index cc8988193..7f09e847e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-12-30 Bruno Haible + + Fix compilation error on most platforms. + * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE. + Reported by Simon Josefsson + and Nelson H. F. Beebe . + 2009-12-30 Eric Blake futimens, utimensat: work around ntfs-3g bug diff --git a/tests/test-localename.c b/tests/test-localename.c index 38fc33040..9afa93244 100644 --- a/tests/test-localename.c +++ b/tests/test-localename.c @@ -26,6 +26,9 @@ #include "macros.h" + +#if HAVE_NEWLOCALE + static struct { int cat; int mask; const char *string; } const categories[] = { { LC_CTYPE, LC_CTYPE_MASK, "LC_CTYPE" }, @@ -54,6 +57,8 @@ static struct { int cat; int mask; const char *string; } const categories[] = # endif }; +#endif + /* Test the gl_locale_name() function. */ static void test_locale_name (void) -- 2.11.0