diff options
Diffstat (limited to 'usr.bin/tar/matching.c')
-rw-r--r-- | usr.bin/tar/matching.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/tar/matching.c b/usr.bin/tar/matching.c index 084ec4d..0aaff92 100644 --- a/usr.bin/tar/matching.c +++ b/usr.bin/tar/matching.c @@ -258,6 +258,8 @@ unmatched_inclusions(struct bsdtar *bsdtar) #if defined(HAVE_FNMATCH) && defined(HAVE_FNM_LEADING_DIR) /* Use system fnmatch() if it suits our needs. */ +/* On Linux, _GNU_SOURCE must be defined to get FNM_LEADING_DIR. */ +#define _GNU_SOURCE #include <fnmatch.h> static int bsdtar_fnmatch(const char *pattern, const char *string) |