Mercurial > gnulib
changeset 32217:99b231f0950f
Fix compilation error on most platforms.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 31 Dec 2009 02:28:19 +0100 |
parents | 57ead33f86b9 |
children | 4339f9f25682 |
files | ChangeLog tests/test-localename.c |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Dec 30 06:48:46 2009 -0700 +++ b/ChangeLog Thu Dec 31 02:28:19 2009 +0100 @@ -1,3 +1,10 @@ +2009-12-30 Bruno Haible <bruno@clisp.org> + + Fix compilation error on most platforms. + * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE. + Reported by Simon Josefsson <simon@josefsson.org> + and Nelson H. F. Beebe <beebe@math.utah.edu>. + 2009-12-30 Eric Blake <ebb9@byu.net> futimens, utimensat: work around ntfs-3g bug
--- a/tests/test-localename.c Wed Dec 30 06:48:46 2009 -0700 +++ b/tests/test-localename.c Thu Dec 31 02:28:19 2009 +0100 @@ -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)