[5.2] 2a89541 Make vxp_test at least compile, while pondering if it should be removed.

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:14 UTC 2017


commit 2a895415bc869a36d5e4fc0bd8cc6998a8568aa9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Sep 8 13:20:38 2017 +0000

    Make vxp_test at least compile, while pondering if it should be removed.

diff --git a/lib/libvarnishapi/vxp_lexer.c b/lib/libvarnishapi/vxp_lexer.c
index 0848ee3..527bbb7 100644
--- a/lib/libvarnishapi/vxp_lexer.c
+++ b/lib/libvarnishapi/vxp_lexer.c
@@ -173,6 +173,7 @@ vxp_Lexer(struct vxp *vxp)
 }
 
 #ifdef VXP_DEBUG
+#include <stdio.h>
 void
 vxp_PrintTokens(const struct vxp *vxp)
 {
diff --git a/lib/libvarnishapi/vxp_test.c b/lib/libvarnishapi/vxp_test.c
index bcca61b..4cc0f8d 100644
--- a/lib/libvarnishapi/vxp_test.c
+++ b/lib/libvarnishapi/vxp_test.c
@@ -34,6 +34,9 @@
 #include <unistd.h>
 
 #include "miniobj.h"
+#include "vdef.h"
+#include "vqueue.h"
+#include "vre.h"
 #include "vas.h"
 
 #include "vsb.h"
@@ -69,7 +72,7 @@ main(int argc, char * const *argv)
 
 	vsb = VSB_new_auto();
 	AN(vsb);
-	vex = vex_New(q_arg, vsb);
+	vex = vex_New(q_arg, vsb, 0);
 
 	if (vex == NULL) {
 		VSB_finish(vsb);


More information about the varnish-commit mailing list