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ò
This commit is contained in:
Tim Kientzle 2008-05-27 04:44:07 +00:00
parent a212de8851
commit aabccf4a0d

View File

@ -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;