Commit 6e56d709 authored by Geoff Simmons's avatar Geoff Simmons

Backport the Varnish master solution for ZERO_OBJ.

See Varnish issue 3051.
parent 50883255
......@@ -41,6 +41,17 @@
#include "vbm.h"
#include "cache/cache_director.h"
/*
* This is the implementation in Varnish since commit dc4a889.
* cf https://github.com/varnishcache/varnish-cache/issues/3051
*/
#undef ZERO_OBJ
#define ZERO_OBJ(to, sz) \
do { \
void *(*volatile z_obj)(void *, int, size_t) = memset; \
(void)z_obj(to, 0, sz); \
} while (0)
#include "vcc_if.h"
#include "patricia.h"
#include "VSC_selector.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment