# HG changeset patch # User Bruno Haible # Date 1262222899 -3600 # Node ID 01da2b836972791df85d505fbafe846fe45ab438 # Parent 53f80a5305747e71d1a14f8e59e7348ccb05d1cc Fix compilation error on most platforms. diff --git a/ChangeLog b/ChangeLog --- 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 --- 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 @@ # endif }; +#endif + /* Test the gl_locale_name() function. */ static void test_locale_name (void)