Update Cygwin's fnmatch to latest from FreeBSD.

* collate.h (__collate_load_error): Convert to extern declaration.
        * globals.cc (__collate_load_error): Define and initialize here.
        * libc/fnmatch.c: Update to latest from FreeBSD.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-11-18 20:51:12 +01:00
parent 8cdd7bad21
commit 7da497499f
3 changed files with 87 additions and 55 deletions

View File

@ -1,6 +1,6 @@
/* collate.h: Internal BSD libc header, used in glob and regcomp, for instance.
Copyright 2012 Red Hat, Inc.
Copyright 2012, 2015 Red Hat, Inc.
This file is part of Cygwin.
@ -13,10 +13,9 @@ details. */
extern "C" {
#endif
/* We never have a collate load error. */
const int __collate_load_error = 0;
extern const int __collate_load_error;
int __collate_range_cmp (int c1, int c2);
extern int __collate_range_cmp (int c1, int c2);
#ifdef __cplusplus
};