RHEL 6: p2v: Add fix for older PCRE.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 11 Jul 2014 09:38:53 +0000 (10:38 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 12 Aug 2014 11:22:41 +0000 (12:22 +0100)
RHEL 6 pcre did not define PCRE_PARTIAL_SOFT.  However PCRE_PARTIAL is
a synonym so use that.

miniexpect.c

index 8c1efd9..99bd29a 100644 (file)
 
 #include <pcre.h>
 
+/* 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