From: Bruno Haible Date: Thu, 31 Dec 2009 01:28:19 +0000 (+0100) Subject: Fix compilation error on most platforms. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2d69f3f48311d89e9e2f3dba66bf19ca4709dc5;p=pspp Fix compilation error on most platforms. --- diff --git a/ChangeLog b/ChangeLog index cc8988193d..7f09e847e9 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 38fc33040a..9afa932441 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)