Blame SOURCES/glibc-rh1505492-undef-46.patch

25845f
commit a476ac4b45fe39b023bed55c852abad04d70c5df
25845f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
25845f
Date:   Fri Aug 1 14:30:43 2014 +0530
25845f
25845f
    Fix -Wundef warnings in regex_internal.h
25845f
25845f
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
25845f
index fa0d590b0f072871..c555bf2939f2df7f 100644
25845f
--- a/include/libc-symbols.h
25845f
+++ b/include/libc-symbols.h
25845f
@@ -73,6 +73,10 @@
25845f
 #define STDC_HEADERS	1
25845f
 #define HAVE_MBSTATE_T	1
25845f
 #define HAVE_MBSRTOWCS	1
25845f
+#define HAVE_LIBINTL_H	1
25845f
+#define HAVE_WCTYPE_H	1
25845f
+#define HAVE_ISWCTYPE	1
25845f
+#define ENABLE_NLS	1
25845f
 
25845f
 /* The symbols in all the user (non-_) macros are C symbols.  */
25845f
 
25845f
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
25845f
index b7f051eff00d1e7d..1e423caa128c1704 100644
25845f
--- a/posix/regex_internal.h
25845f
+++ b/posix/regex_internal.h
25845f
@@ -90,7 +90,7 @@
25845f
 # define SIZE_MAX ((size_t) -1)
25845f
 #endif
25845f
 
25845f
-#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL) || _LIBC
25845f
+#if (defined MB_CUR_MAX && HAVE_WCTYPE_H && HAVE_ISWCTYPE) || _LIBC
25845f
 # define RE_ENABLE_I18N
25845f
 #endif
25845f