summaryrefslogtreecommitdiff
path: root/openbsd-compat/fnmatch.c
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.c
parentb56dbfd9d967e5b6ce7be9f81f206112e19e1030 (diff)
downloadopenssh-git-0e3c5bc50907d2058407641b5a3581b7eda91b7e.tar.gz
Hook up fnmatch for platforms that don't have it.
Diffstat (limited to 'openbsd-compat/fnmatch.c')
-rw-r--r--openbsd-compat/fnmatch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsd-compat/fnmatch.c b/openbsd-compat/fnmatch.c
index 88d5dbc3..da841d20 100644
--- a/openbsd-compat/fnmatch.c
+++ b/openbsd-compat/fnmatch.c
@@ -85,6 +85,11 @@
* path delimiter must be aware that 0x5C is NOT unique within SHIFT-JIS.
*/
+/* OPENBSD ORIGINAL: lib/libc/gen/fnmatch.c */
+
+#include "includes.h"
+#ifndef HAVE_FNMATCH
+
#include <fnmatch.h>
#include <string.h>
#include <ctype.h>
@@ -487,3 +492,4 @@ firstsegment:
/* Pattern didn't match to the end of string. */
return FNM_NOMATCH;
}
+#endif /* HAVE_FNMATCH */