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

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