summaryrefslogtreecommitdiff
path: root/openbsd-compat/fnmatch.h
diff options
context:
space:
mode:
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 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 */
54int fnmatch(const char *, const char *, int); 60int 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 */