aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-08 22:55:10 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-08 22:55:10 +0200
commit3eb3ba3d309ff5e560b5428ccf01694aeb62663e (patch)
tree354b80c4ade9273fea3c2fcb786ffa9f51d39899
parent4fd8b3538c7351ac39ea81533727a99ff3e4abb2 (diff)
libtar: fix: do not include fnmatch.h directly
On platforms like Windows, we don't have fnmatch.h and a libcompat implementation is provided. Instead of including fnmatch.h, include compat.h which includes the propper headers, if available. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/tar/src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/src/iterator.c b/lib/tar/src/iterator.c
index 85466ba..46748f7 100644
--- a/lib/tar/src/iterator.c
+++ b/lib/tar/src/iterator.c
@@ -11,12 +11,12 @@
#include "sqfs/xattr.h"
#include "util/util.h"
#include "io/xfrm.h"
+#include "compat.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
-#include <fnmatch.h>
typedef struct {
sqfs_dir_iterator_t base;