summaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index 111168f..e5785d3 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -8,6 +8,7 @@
#define COMPAT_H
#include "sqfs/predef.h"
+#include "config.h"
#if defined(__GNUC__) && __GNUC__ >= 5
# define SZ_ADD_OV __builtin_add_overflow
@@ -188,4 +189,15 @@ int getsubopt(char **opt, char *const *keys, char **val);
WCHAR *path_to_windows(const char *input);
#endif
+#ifdef HAVE_FNMATCH
+#include <fnmatch.h>
+#else
+#define FNM_PATHNAME 0x1
+
+#define FNM_NOMATCH 1
+#define FNM_NOSYS (-1)
+
+int fnmatch(const char *, const char *, int);
+#endif
+
#endif /* COMPAT_H */