summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fnmatch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c
index b9b059834..32468964d 100644
--- a/lib/fnmatch.c
+++ b/lib/fnmatch.c
@@ -35,6 +35,7 @@
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
@@ -156,10 +157,6 @@ extern int fnmatch (const char *pattern, const char *string, int flags);
/* Avoid depending on library functions or files
whose names are inconsistent. */
-# ifndef errno
-extern int errno;
-# endif
-
/* Global variable. */
static int posixly_correct;