summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/bsdtar_platform.h
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-12-22 06:08:04 +0000
committerkientzle <kientzle@FreeBSD.org>2004-12-22 06:08:04 +0000
commit5babdbc5e39772bd06d90df99bca82383176306c (patch)
treeeb2c62627a3005fd54a759817b9059c64f786d98 /usr.bin/tar/bsdtar_platform.h
parentb5c1699658052d470215b38e311eca62024ae20b (diff)
downloadFreeBSD-src-5babdbc5e39772bd06d90df99bca82383176306c.zip
FreeBSD-src-5babdbc5e39772bd06d90df99bca82383176306c.tar.gz
Add a fallback version of fnmatch() to the bsdtar
source code. Include configure logic to pick up the system one when it exists and use the fallback version when it doesn't exist. Set the default for FreeBSD to use the system version. With this, bsdtar should now be quite portable.
Diffstat (limited to 'usr.bin/tar/bsdtar_platform.h')
-rw-r--r--usr.bin/tar/bsdtar_platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar_platform.h b/usr.bin/tar/bsdtar_platform.h
index b17cebf..e4728e3 100644
--- a/usr.bin/tar/bsdtar_platform.h
+++ b/usr.bin/tar/bsdtar_platform.h
@@ -50,6 +50,7 @@
#define HAVE_FCHDIR 1
#define HAVE_FCNTL_H 1
#define HAVE_FNMATCH 1
+#define HAVE_FNM_LEADING_DIR 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETOPT_LONG 1
#define HAVE_INTTYPES_H 1
OpenPOWER on IntegriCloud