diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-05-27 04:44:07 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-05-27 04:44:07 +0000 |
commit | e2011087ec9a77fef90cb3ba5456a0e45d1e14ca (patch) | |
tree | 2b52844a485c6c70114a737e3b1210b28ff4729e /usr.bin/tar | |
parent | c8237b3c06b5ed64e6cfa5361248ecaea22ad23f (diff) | |
download | FreeBSD-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.c | 4 |
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; |