From f3a96ba211db0af878707335fd231b9b60510a29 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 12 Jun 2017 02:05:17 +0200 Subject: [PATCH] localename: Fix test failure on DragonFly BSD. * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD like FreeBSD. --- ChangeLog | 6 ++++++ lib/localename.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4871025204..f771016755 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2017-06-11 Bruno Haible + 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 + float: Fix 'float' and 'isinf' failures on DragonFly BSD. * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD. * lib/float.in.h: Likewise. diff --git a/lib/localename.c b/lib/localename.c index eb0755c6d9..3a119281f2 100644 --- a/lib/localename.c +++ b/lib/localename.c @@ -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; -- 2.11.4.GIT