summaryrefslogtreecommitdiff
path: root/system/coreutils/localename-test-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/coreutils/localename-test-fix.patch')
-rw-r--r--system/coreutils/localename-test-fix.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/coreutils/localename-test-fix.patch b/system/coreutils/localename-test-fix.patch
index f90d11866..9907eb67a 100644
--- a/system/coreutils/localename-test-fix.patch
+++ b/system/coreutils/localename-test-fix.patch
@@ -19,7 +19,7 @@
+# if __GLIBC__ >= 2 && !defined __UCLIBC__
/* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
glibc < 2.12.
- See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */
+ See <https://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */
- const char *name =
- nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1)));
+ if (name[0] == '\0')
@@ -30,5 +30,5 @@
name = thread_locale->__names[category];
+# endif
return name;
- # elif defined __FreeBSD__ || (defined __APPLE__ && defined __MACH__)
+ # elif (defined __FreeBSD__ || defined __DragonFly__) || (defined __APPLE__ && defined __MACH__)
/* FreeBSD, Mac OS X */