git.annexia.org
/
miniexpect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d911800
)
RHEL 6: p2v: Add fix for older PCRE.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 11 Jul 2014 09:38:53 +0000
(10:38 +0100)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/miniexpect.c
b/miniexpect.c
index
8c1efd9
..
99bd29a
100644
(file)
--- a/
miniexpect.c
+++ b/
miniexpect.c
@@
-35,6
+35,13
@@
#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