fnmatch: Fix syntax error in C++ mode on CentOS 7.

* lib/fnmatch.in.h (fnmatch): Provide declaration of overridden fnmatch
function, needed for _GL_CXXALIASWARN.
This commit is contained in:
Bruno Haible
2026-06-26 16:42:01 +02:00
parent 56040ffd2c
commit 791b747b2e
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2026-06-26 Bruno Haible <bruno@clisp.org>
fnmatch: Fix syntax error in C++ mode on CentOS 7.
* lib/fnmatch.in.h (fnmatch): Provide declaration of overridden fnmatch
function, needed for _GL_CXXALIASWARN.
2026-06-25 Paul Eggert <eggert@cs.ucla.edu>
fstatat: port null file support to Alpine 3.24
+8
View File
@@ -81,6 +81,14 @@
/* Match NAME against the file name pattern PATTERN,
returning zero if it matches, FNM_NOMATCH if not. */
# if @REPLACE_FNMATCH@
/* Because we haven't included the system's <fnmatch.h> (see above),
we need to state the system's 'fnmatch' declaration. This is necessary
for the _GL_CXXALIASWARN invocation below. */
# if @HAVE_FNMATCH@
_GL_FUNCDECL_SYS (fnmatch, int,
(const char *pattern, const char *name, int flags),
_GL_ARG_NONNULL ((1, 2)));
# endif
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# define fnmatch rpl_fnmatch
# endif