Blame patches/grep-3.12.local.patch

a0b98c
diff -ru grep-3.12.orig/gnulib-tests/getlocalename_l-unsafe.c grep-3.12/gnulib-tests/getlocalename_l-unsafe.c
a0b98c
--- grep-3.12.orig/gnulib-tests/getlocalename_l-unsafe.c	2025-04-02 23:47:17.000000000 +0200
a0b98c
+++ grep-3.12/gnulib-tests/getlocalename_l-unsafe.c	2025-05-03 12:25:34.886160226 +0200
a0b98c
@@ -30,7 +30,7 @@
a0b98c
 #endif
a0b98c
 #include "setlocale_null.h"
a0b98c
 
a0b98c
-#if (__GLIBC__ >= 2 && !defined __UCLIBC__) || (defined __linux__ && HAVE_LANGINFO_H) || defined __CYGWIN__
a0b98c
+#if (__GLIBC__ >= 2 && !defined __UCLIBC__) || (defined __linux__ && HAVE_LANGINFO_H) || defined __CYGWIN__ || defined __midipix__
a0b98c
 # include <langinfo.h>
a0b98c
 #endif
a0b98c
 #if defined __sun
a0b98c
@@ -480,7 +480,7 @@
a0b98c
            nl_langinfo_l (_NL_LOCALE_NAME (category), locale).  */
a0b98c
         name = locale->__names[category];
a0b98c
       return (struct string_with_storage) { name, STORAGE_OBJECT };
a0b98c
-#elif defined __linux__ && HAVE_LANGINFO_H && defined NL_LOCALE_NAME
a0b98c
+#elif (defined __linux__ || defined __midipix__) && HAVE_LANGINFO_H && defined NL_LOCALE_NAME
a0b98c
       /* musl libc */
a0b98c
       const char *name = nl_langinfo_l (NL_LOCALE_NAME (category), locale);
a0b98c
       return (struct string_with_storage) { name, STORAGE_OBJECT };