Blame patches/datamash-1.9.local.patch

61ba06
diff -ru datamash-1.9.orig/lib/getlocalename_l-unsafe.c datamash-1.9/lib/getlocalename_l-unsafe.c
61ba06
--- datamash-1.9.orig/lib/getlocalename_l-unsafe.c	2025-03-28 20:25:41.000000000 +0100
61ba06
+++ datamash-1.9/lib/getlocalename_l-unsafe.c	2025-04-05 15:32:36.072309321 +0200
61ba06
@@ -30,7 +30,7 @@
61ba06
 #endif
61ba06
 #include "setlocale_null.h"
61ba06
 
61ba06
-#if (__GLIBC__ >= 2 && !defined __UCLIBC__) || (defined __linux__ && HAVE_LANGINFO_H) || defined __CYGWIN__
61ba06
+#if (__GLIBC__ >= 2 && !defined __UCLIBC__) || (defined __linux__ && HAVE_LANGINFO_H) || defined __CYGWIN__ || defined __midipix__
61ba06
 # include <langinfo.h>
61ba06
 #endif
61ba06
 #if defined __sun
61ba06
@@ -480,7 +480,7 @@
61ba06
            nl_langinfo_l (_NL_LOCALE_NAME (category), locale).  */
61ba06
         name = locale->__names[category];
61ba06
       return (struct string_with_storage) { name, STORAGE_OBJECT };
61ba06
-#elif defined __linux__ && HAVE_LANGINFO_H && defined NL_LOCALE_NAME
61ba06
+#elif (defined __linux__ || defined __midipix__) && HAVE_LANGINFO_H && defined NL_LOCALE_NAME
61ba06
       /* musl libc */
61ba06
       const char *name = nl_langinfo_l (NL_LOCALE_NAME (category), locale);
61ba06
       return (struct string_with_storage) { name, STORAGE_OBJECT };