From 0e3c5bc50907d2058407641b5a3581b7eda91b7e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 1 Nov 2019 18:24:29 +1100 Subject: Hook up fnmatch for platforms that don't have it. --- openbsd-compat/fnmatch.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsd-compat/fnmatch.c') diff --git a/openbsd-compat/fnmatch.c b/openbsd-compat/fnmatch.c index 88d5dbc3c..da841d203 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 #include #include @@ -487,3 +492,4 @@ firstsegment: /* Pattern didn't match to the end of string. */ return FNM_NOMATCH; } +#endif /* HAVE_FNMATCH */ -- cgit v1.2.3