From: willy tarreau Date: Sun, 18 Dec 2005 00:31:43 +0000 (+0100) Subject: * building with -DUSE_PCRE should include PCRE headers and not regex.h. At X-Git-Tag: v1.2.7~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=77bc854117a3b2aaa45871bf5890c6b78ae20e8c;p=haproxy.git * building with -DUSE_PCRE should include PCRE headers and not regex.h. At least on Solaris, this caused the libc's regex primitives to be used instead of PCRE, which caused trouble on group references. This is now fixed. --- diff --git a/CHANGELOG b/CHANGELOG index edff112bb..c046e3c3c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,11 @@ ChangeLog : =========== +2005/10/25 + - building with -DUSE_PCRE should include PCRE headers and not regex.h. At + least on Solaris, this caused the libc's regex primitives to be used instead + of PCRE, which caused trouble on group references. This is now fixed. + 2005/10/09 : 1.2.7rc (1.1.33rc) - second batch of socklen_t changes. - clean-ups from Cameron Simpson. diff --git a/haproxy.c b/haproxy.c index e362df5bb..723c15fbb 100644 --- a/haproxy.c +++ b/haproxy.c @@ -52,8 +52,15 @@ #include #include #include -#include #include + +#ifdef USE_PCRE +#include +#include +#else +#include +#endif + #if defined(TPROXY) && defined(NETFILTER) #include #endif