[master] 025011a Make vrt.h standalone again, and add test to ensure it stays that way.

Poul-Henning Kamp phk at FreeBSD.org
Thu Mar 9 08:05:06 CET 2017


commit 025011aef4a78f4fed9fe798c28ce8cd9e7aa1d3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Mar 9 07:03:22 2017 +0000

    Make vrt.h standalone again, and add test to ensure it stays that way.
    
    Fixes #2250

diff --git a/include/Makefile.am b/include/Makefile.am
index 2df7780..0861385 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -124,13 +124,21 @@ CLEANFILES = \
 	tbl/vrt_stv_var.h \
 	vcl.h \
 	vrt_obj.h \
-	vmod_abi.h
+	vmod_abi.h \
+	vrt_test \
+	_vrt_test
 
-TESTS = vbm_test
+TESTS = vbm_test vrt_test
 
 noinst_PROGRAMS = ${TESTS}
 
 vbm_test_SOURCES = vbm_test.c vbm.h
 
+vrt_test_SOURCES =
+
+vrt_test:
+	echo "exec ${CC} -c -o _vrt_test $(top_srcdir)/include/vrt.h" > vrt_test
+	chmod +x vrt_test
+
 test: ${TESTS}
 	@for test in ${TESTS} ; do ./$${test} ; done
diff --git a/include/vrt.h b/include/vrt.h
index 0e86013..06080ea 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -65,6 +65,10 @@
 
 /***********************************************************************/
 
+#ifndef __v_printflike
+#  define __v_printflike(a,b)
+#endif
+
 struct VCL_conf;
 struct vrt_acl;
 struct busyobj;



More information about the varnish-commit mailing list