]> Savannah Git Hosting - gnulib.git/commitdiff
localename: Fix test failure on DragonFly BSD.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Jun 2017 00:05:17 +0000 (02:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Jun 2017 00:05:17 +0000 (02:05 +0200)
* lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
like FreeBSD.

ChangeLog
lib/localename.c

index 487102520451aded246d49c058e2f2b495ecbcb8..f771016755e918fd072c9a018c627d5bc5914414 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-11  Bruno Haible  <bruno@clisp.org>
+
+       localename: Fix test failure on DragonFly BSD.
+       * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
+       like FreeBSD.
+
 2017-06-11  Bruno Haible  <bruno@clisp.org>
 
        float: Fix 'float' and 'isinf' failures on DragonFly BSD.
index eb0755c6d9430b9681b240d0901a9fe71b3e4f7b..3a119281f2bc13ce6692052e8bc6cd00459126da 100644 (file)
@@ -2703,7 +2703,7 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname)
              nl_langinfo (_NL_LOCALE_NAME (category)).  */
           name = thread_locale->__names[category];
         return name;
-#  elif defined __FreeBSD__ || (defined __APPLE__ && defined __MACH__)
+#  elif (defined __FreeBSD__ || defined __DragonFly__) || (defined __APPLE__ && defined __MACH__)
         /* FreeBSD, Mac OS X */
         int mask;