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

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