X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5e12ce118622705111df38043132b336590604b0..c36cd3171366e13b6b5d50e2c3a2c7269cd8e89c:/lib/fnmatch.h diff --git a/lib/fnmatch.h b/lib/fnmatch.h index eeaee7fb..cc75ffdc 100644 --- a/lib/fnmatch.h +++ b/lib/fnmatch.h @@ -55,9 +55,13 @@ extern "C" { #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ -#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE +#ifndef FNM_FILE_NAME # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ +#endif +#ifndef FNM_LEADING_DIR # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ +#endif +#ifndef FNM_CASEFOLD # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ #endif