components/ggrep/patches/gnulib-tests_localename_c.patch
author April Chin <april.chin@oracle.com>
Tue, 02 Feb 2016 13:47:41 -0800
changeset 5391 5aa4a8c4577f
parent 4402 b7cd2462c58f
child 7900 18f1ac4be9fb
permissions -rw-r--r--
22536285 update ggrep to 2.22 22506630 problem in UTILITY/GGREP

# This patch fixes a test failure in gnulib-tests/test-localename
# __getlocalename_l is an Oracle private interface. 
# Do not send this patch upstream.

--- grep-2.22-orig/gnulib-tests/localename.c	2015-10-24 13:07:13.000000000 -0700
+++ grep-2.22/gnulib-tests/localename.c	2016-01-19 17:18:20.049731748 -0800
@@ -2732,6 +2732,9 @@ gl_locale_name_thread_unsafe (int catego
 #  elif defined __sun && HAVE_GETLOCALENAME_L
         /* Solaris >= 12.  */
         return getlocalename_l (category, thread_locale);
+#  elif defined(sun) || defined(__sun) || defined(__sun__)
+        extern char * __getlocalename_l(int, locale_t);
+        return __getlocalename_l (category, thread_locale);
 #  elif defined __ANDROID__
         return MB_CUR_MAX == 4 ? "C.UTF-8" : "C";
 #  endif