diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-03-14 00:30:35 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-03-14 00:30:35 +0000 |
commit | 7f4dba0f0e20721fa52a997a66609227b056a7d5 (patch) | |
tree | 1d5c1643e9c1aa45e915073cb250c8198496e276 /usr.bin/tar/matching.c | |
parent | c46a8c03ead06bb66f941e909a3f4522490f3e7a (diff) | |
download | FreeBSD-src-7f4dba0f0e20721fa52a997a66609227b056a7d5.zip FreeBSD-src-7f4dba0f0e20721fa52a997a66609227b056a7d5.tar.gz |
A handful of minor portability and style improvements.
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) |