[master] ffe29fe Workaround: Compile even if PCRE is too old to have JIT

Poul-Henning Kamp phk at FreeBSD.org
Tue May 5 09:33:17 CEST 2015


commit ffe29fee279a576f978230c7169bb72ac4c86b91
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue May 5 07:32:47 2015 +0000

    Workaround:  Compile even if PCRE is too old to have JIT
    
    The real fix should be in configure

diff --git a/lib/libvarnish/vre.c b/lib/libvarnish/vre.c
index cc5a615..193afa9 100644
--- a/lib/libvarnish/vre.c
+++ b/lib/libvarnish/vre.c
@@ -36,7 +36,7 @@
 
 #include "vre.h"
 
-#if USE_PCRE_JIT
+#if defined(USE_PCRE_JIT) && defined (PCRE_STUDY_JIT_COMPILE)
 #define VRE_STUDY_JIT_COMPILE PCRE_STUDY_JIT_COMPILE
 #else
 #define VRE_STUDY_JIT_COMPILE 0



More information about the varnish-commit mailing list