diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 08:24:29 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 08:27:37 +0100 |
commit | 0e3c5bc50907d2058407641b5a3581b7eda91b7e (patch) | |
tree | c7dda5c4d05debff27635a088bd6193c8d67f25a /openbsd-compat/fnmatch.h | |
parent | Add missing bracket in realpath macro. (diff) | |
download | openssh-0e3c5bc50907d2058407641b5a3581b7eda91b7e.tar.xz openssh-0e3c5bc50907d2058407641b5a3581b7eda91b7e.zip |
Hook up fnmatch for platforms that don't have it.
Diffstat (limited to 'openbsd-compat/fnmatch.h')
-rw-r--r-- | openbsd-compat/fnmatch.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openbsd-compat/fnmatch.h b/openbsd-compat/fnmatch.h index 4b27d06c3..b54de01ff 100644 --- a/openbsd-compat/fnmatch.h +++ b/openbsd-compat/fnmatch.h @@ -32,10 +32,16 @@ * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 */ +/* OPENBSD ORIGINAL: include/fnmatch.h */ + +#ifndef HAVE_FNMATCH_H + #ifndef _FNMATCH_H_ #define _FNMATCH_H_ +#ifdef HAVE_SYS_CDEFS_H #include <sys/cdefs.h> +#endif #define FNM_NOMATCH 1 /* Match failed. */ #define FNM_NOSYS 2 /* Function not supported (unused). */ @@ -50,8 +56,9 @@ #define FNM_FILE_NAME FNM_PATHNAME #endif -__BEGIN_DECLS +/* __BEGIN_DECLS */ int fnmatch(const char *, const char *, int); -__END_DECLS +/* __END_DECLS */ #endif /* !_FNMATCH_H_ */ +#endif /* ! HAVE_FNMATCH_H */ |