summaryrefslogtreecommitdiff
path: root/lib/fnmatch.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-02 18:10:35 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-02 18:10:35 +0000
commita4805f79e88968d0f3c0c39bca518d549390c088 (patch)
treeef0bd72825696cfb6943f8aef6423a836ad378ff /lib/fnmatch.c
parent46499517ba7bc6f1030ce5fa86d4ff07c7a13322 (diff)
downloadcoreutils-a4805f79e88968d0f3c0c39bca518d549390c088.tar.xz
Include <stdbool.h>.
(errno): Remove decl; we now assume C89 or better.
Diffstat (limited to 'lib/fnmatch.c')
-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;