[master] e70fe44 Fix building on FreeBSD < 10.0
Federico G. Schwindt
fgsch at lodoss.net
Mon Oct 26 17:46:52 CET 2015
commit e70fe44a67408c8deb95f87fe8ca2826bc0d2f10
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Oct 26 16:46:18 2015 +0000
Fix building on FreeBSD < 10.0
diff --git a/bin/varnishd/cache/cache_main.c b/bin/varnishd/cache/cache_main.c
index cc5471c..83de0cd 100644
--- a/bin/varnishd/cache/cache_main.c
+++ b/bin/varnishd/cache/cache_main.c
@@ -188,7 +188,7 @@ static struct cli_proto debug_cmds[] = {
* XXX: Think more about which order we start things
*/
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && __FreeBSD__version >= 1000000
static void
child_malloc_fail(void *p, const char *s)
{
@@ -205,7 +205,7 @@ child_main(void)
setbuf(stdout, NULL);
setbuf(stderr, NULL);
printf("Child starts\n");
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && __FreeBSD__version >= 1000000
malloc_message = child_malloc_fail;
#endif
More information about the varnish-commit
mailing list