diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 18:24:29 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 18:27:37 +1100 |
commit | 0e3c5bc50907d2058407641b5a3581b7eda91b7e (patch) | |
tree | c7dda5c4d05debff27635a088bd6193c8d67f25a /openbsd-compat/fnmatch.h | |
parent | b56dbfd9d967e5b6ce7be9f81f206112e19e1030 (diff) |
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 @@ | |||
32 | * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 | 32 | * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 |
33 | */ | 33 | */ |
34 | 34 | ||
35 | /* OPENBSD ORIGINAL: include/fnmatch.h */ | ||
36 | |||
37 | #ifndef HAVE_FNMATCH_H | ||
38 | |||
35 | #ifndef _FNMATCH_H_ | 39 | #ifndef _FNMATCH_H_ |
36 | #define _FNMATCH_H_ | 40 | #define _FNMATCH_H_ |
37 | 41 | ||
42 | #ifdef HAVE_SYS_CDEFS_H | ||
38 | #include <sys/cdefs.h> | 43 | #include <sys/cdefs.h> |
44 | #endif | ||
39 | 45 | ||
40 | #define FNM_NOMATCH 1 /* Match failed. */ | 46 | #define FNM_NOMATCH 1 /* Match failed. */ |
41 | #define FNM_NOSYS 2 /* Function not supported (unused). */ | 47 | #define FNM_NOSYS 2 /* Function not supported (unused). */ |
@@ -50,8 +56,9 @@ | |||
50 | #define FNM_FILE_NAME FNM_PATHNAME | 56 | #define FNM_FILE_NAME FNM_PATHNAME |
51 | #endif | 57 | #endif |
52 | 58 | ||
53 | __BEGIN_DECLS | 59 | /* __BEGIN_DECLS */ |
54 | int fnmatch(const char *, const char *, int); | 60 | int fnmatch(const char *, const char *, int); |
55 | __END_DECLS | 61 | /* __END_DECLS */ |
56 | 62 | ||
57 | #endif /* !_FNMATCH_H_ */ | 63 | #endif /* !_FNMATCH_H_ */ |
64 | #endif /* ! HAVE_FNMATCH_H */ | ||