From: Richard W.M. Jones Date: Fri, 11 Jul 2014 09:38:53 +0000 (+0100) Subject: RHEL 6: p2v: Add fix for older PCRE. X-Git-Tag: v1.1~15 X-Git-Url: http://git.annexia.org/?p=miniexpect.git;a=commitdiff_plain;h=6a1abada9daf0954944c3452e6b6938994fc307e RHEL 6: p2v: Add fix for older PCRE. RHEL 6 pcre did not define PCRE_PARTIAL_SOFT. However PCRE_PARTIAL is a synonym so use that. --- diff --git a/miniexpect.c b/miniexpect.c index 8c1efd9..99bd29a 100644 --- a/miniexpect.c +++ b/miniexpect.c @@ -35,6 +35,13 @@ #include +/* RHEL 6 pcre did not define PCRE_PARTIAL_SOFT. However PCRE_PARTIAL + * is a synonym so use that. + */ +#ifndef PCRE_PARTIAL_SOFT +#define PCRE_PARTIAL_SOFT PCRE_PARTIAL +#endif + #include "miniexpect.h" #define DEBUG 0