[master] 1e696ea Make vxp_test at least compile, while pondering if it should be removed.
Poul-Henning Kamp
phk at FreeBSD.org
Fri Sep 8 13:21:05 UTC 2017
commit 1e696ea10dc96e1f0976e746f04503fac15734bc
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