From 881bc1fec39df50ce356880e55684586a2c41f95 Mon Sep 17 00:00:00 2001 From: stever Date: Mon, 22 Nov 1999 05:43:23 +0000 Subject: [PATCH] Newer upstream FreeBSD version (supports FNM_CASEFOLD and FNM_LEADING_DIR). --- include/fnmatch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fnmatch.h b/include/fnmatch.h index b69f587..abc85f7 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -42,7 +42,9 @@ #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ #ifndef _POSIX_SOURCE -#define FNM_CASEFOLD 0x08 /* Case insensitive match (GNO-specific) */ +#define FNM_CASEFOLD 0x08 /* Case insensitive search. */ +#define FNM_LEADING_DIR 0x10 /* Ignore / after Imatch. */ +#define FNM_IGNORECASE FNM_CASEFOLD #endif #ifndef _SYS_CDEFS_H_ @@ -50,9 +52,7 @@ #endif __BEGIN_DECLS -#ifndef _POSIX_SOURCE int fnmatch __P((const char *, const char *, int)); -#endif __END_DECLS #endif /* !_FNMATCH_H_ */