From 46ab4cbee873804e3b05e73d0cb4128f99998fc2 Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 22 Sep 1997 05:03:30 +0000 Subject: [PATCH] From FreeBSD: 1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE 2) POSIX.2 fixes --- src/include/fnmatch.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/fnmatch.h b/src/include/fnmatch.h index 62f483f7..38cf14fd 100644 --- a/src/include/fnmatch.h +++ b/src/include/fnmatch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fnmatch.h,v 1.2 1997/09/21 10:45:33 niklas Exp $ */ +/* $OpenBSD: fnmatch.h,v 1.3 1997/09/22 05:03:30 millert Exp $ */ /* $NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $ */ /*- @@ -44,6 +44,11 @@ #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ #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_LEADING_DIR 0x08 /* Ignore / after Imatch. */ +#define FNM_CASEFOLD 0x10 /* Case insensitive search. */ +#define FNM_IGNORECASE FNM_CASEFOLD +#endif #include