From 7ab78e8bd090e2454b83a433768c5b0a96b551f4 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 29 Mar 2026 14:08:46 +0000 Subject: [PATCH] FNM_CASEFOLD (and its synonym FNM_IGNORECASE) are now part of POSIX.1-2024 Flagged by Sortix os-test. ok millert@, guenther@ --- include/fnmatch.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/fnmatch.h b/include/fnmatch.h index 4b27d06c3db..d35d701c78e 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fnmatch.h,v 1.8 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: fnmatch.h,v 1.9 2026/03/29 14:08:46 daniel Exp $ */ /* $NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $ */ /*- @@ -43,11 +43,15 @@ #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. */ + #if __BSD_VISIBLE #define FNM_LEADING_DIR 0x08 /* Ignore / after Imatch. */ +#define FNM_FILE_NAME FNM_PATHNAME +#endif + +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405 #define FNM_CASEFOLD 0x10 /* Case insensitive search. */ #define FNM_IGNORECASE FNM_CASEFOLD -#define FNM_FILE_NAME FNM_PATHNAME #endif __BEGIN_DECLS