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

147e83
commit 3f3dd810e03661535980e334723666205c693313
147e83
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
147e83
Date:   Fri Aug 1 14:23:38 2014 +0530
147e83
147e83
    Fix -Wundef warnings in fnmatch.c
147e83
    
147e83
    Fixes -Wundef warnings for MBSTATE_T and HAVE_STRING_H.  The
147e83
    HAVE_STRING_H bit is a merge from the gnulib fnmatch.c and the
147e83
    MBSTATE_T fix has been posted to gnulib for inclusion.
147e83
147e83
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
147e83
index bf98c33cf3ba9df6..fa0d590b0f072871 100644
147e83
--- a/include/libc-symbols.h
147e83
+++ b/include/libc-symbols.h
147e83
@@ -68,9 +68,11 @@
147e83
    so it's harmless.  */
147e83
 #define HAVE_CONFIG_H	0
147e83
 
147e83
-/* Define this for the benefit of portable GNU code that wants to check it.
147e83
-   Of course, it's never false when building libc!  */
147e83
+/* Define these macros for the benefit of portable GNU code that wants to check
147e83
+   them.  Of course, STDC_HEADERS is never false when building libc!  */
147e83
 #define STDC_HEADERS	1
147e83
+#define HAVE_MBSTATE_T	1
147e83
+#define HAVE_MBSRTOWCS	1
147e83
 
147e83
 /* The symbols in all the user (non-_) macros are C symbols.  */
147e83
 
147e83
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
147e83
index 99ec8c4a0eba49b3..eed12b7b515e390c 100644
147e83
--- a/posix/fnmatch.c
147e83
+++ b/posix/fnmatch.c
147e83
@@ -29,12 +29,7 @@
147e83
 #include <errno.h>
147e83
 #include <fnmatch.h>
147e83
 #include <ctype.h>
147e83
-
147e83
-#if HAVE_STRING_H || defined _LIBC
147e83
-# include <string.h>
147e83
-#else
147e83
-# include <strings.h>
147e83
-#endif
147e83
+#include <string.h>
147e83
 
147e83
 #if defined STDC_HEADERS || defined _LIBC
147e83
 # include <stdlib.h>