From aabccf4a0ddcf1fa48db949d184418fd9a77428f Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 27 May 2008 04:44:07 +0000 Subject: [PATCH] Compatibility fix: define REG_BASIC if it isn't already. In particular, glibc has a suitable regex implementation, but doesn't define this constant. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to: Diego "Flameeyes" Pettenò --- usr.bin/tar/subst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/tar/subst.c b/usr.bin/tar/subst.c index 9fcd4d95fcf5..ea96d156b7ac 100644 --- a/usr.bin/tar/subst.c +++ b/usr.bin/tar/subst.c @@ -34,6 +34,10 @@ __FBSDID("$FreeBSD$"); #include #include +#ifndef REG_BASIC +#define REG_BASIC 0 +#endif + struct subst_rule { struct subst_rule *next; regex_t re;