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

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