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

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