summaryrefslogtreecommitdiff
path: root/openbsd-compat/fnmatch.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-01 18:24:29 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-11-01 18:27:37 +1100
commit0e3c5bc50907d2058407641b5a3581b7eda91b7e (patch)
treec7dda5c4d05debff27635a088bd6193c8d67f25a /openbsd-compat/fnmatch.h
parentb56dbfd9d967e5b6ce7be9f81f206112e19e1030 (diff)
downloadopenssh-git-0e3c5bc50907d2058407641b5a3581b7eda91b7e.tar.gz
Hook up fnmatch for platforms that don't have it.
Diffstat (limited to 'openbsd-compat/fnmatch.h')
-rw-r--r--openbsd-compat/fnmatch.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/openbsd-compat/fnmatch.h b/openbsd-compat/fnmatch.h
index 4b27d06c..b54de01f 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 */