summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-05-27 04:44:07 +0000
committerkientzle <kientzle@FreeBSD.org>2008-05-27 04:44:07 +0000
commite2011087ec9a77fef90cb3ba5456a0e45d1e14ca (patch)
tree2b52844a485c6c70114a737e3b1210b28ff4729e /usr.bin/tar
parentc8237b3c06b5ed64e6cfa5361248ecaea22ad23f (diff)
downloadFreeBSD-src-e2011087ec9a77fef90cb3ba5456a0e45d1e14ca.zip
FreeBSD-src-e2011087ec9a77fef90cb3ba5456a0e45d1e14ca.tar.gz
Compatibility fix: define REG_BASIC if it isn't already. In particular,
glibc has a suitable regex implementation, but doesn't define this constant. Thanks to: Diego "Flameeyes" Pettenò
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/subst.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/tar/subst.c b/usr.bin/tar/subst.c
index 9fcd4d9..ea96d15 100644
--- a/usr.bin/tar/subst.c
+++ b/usr.bin/tar/subst.c
@@ -34,6 +34,10 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <string.h>
+#ifndef REG_BASIC
+#define REG_BASIC 0
+#endif
+
struct subst_rule {
struct subst_rule *next;
regex_t re;
OpenPOWER on IntegriCloud