aboutsummaryrefslogtreecommitdiff
path: root/posix/fnmatch.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-08-01 14:23:38 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-08-01 14:23:38 +0530
commit3f3dd810e03661535980e334723666205c693313 (patch)
tree353de90ce25d898f9ff72e6cb4a2d4b1ca2f28ff /posix/fnmatch.c
parent95ee7fb13ba99ba265b49531c57e1cb8db629bc6 (diff)
downloadglibc-3f3dd810e03661535980e334723666205c693313.zip
glibc-3f3dd810e03661535980e334723666205c693313.tar.gz
glibc-3f3dd810e03661535980e334723666205c693313.tar.bz2
Fix -Wundef warnings in fnmatch.c
Fixes -Wundef warnings for MBSTATE_T and HAVE_STRING_H. The HAVE_STRING_H bit is a merge from the gnulib fnmatch.c and the MBSTATE_T fix has been posted to gnulib for inclusion.
Diffstat (limited to 'posix/fnmatch.c')
-rw-r--r--posix/fnmatch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index ca95ab4..c330a12 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -28,12 +28,7 @@
#include <errno.h>
#include <fnmatch.h>
#include <ctype.h>
-
-#if HAVE_STRING_H || defined _LIBC
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
#if defined STDC_HEADERS || defined _LIBC
# include <stdlib.h>