Commit ddf2b04a authored by Nils Goroll's avatar Nils Goroll

Detect VRT_DirectorResolve in varnish-cache

parent 31cecd8a
......@@ -26,6 +26,12 @@ AC_CONFIG_FILES([
src/Makefile
])
save_CFLAGS="${CFLAGS}"
CFLAGS="${VARNISHAPI_CFLAGS}"
AC_CHECK_DECLS([VRT_DirectorResolve], [], [], [[#include "vdef.h"
#include "vrt.h"]])
CFLAGS="${save_CFLAGS}"
AC_OUTPUT
AS_ECHO("
......
......@@ -42,7 +42,7 @@
* workaround missing VRT_DirectorResolve
* Ref https://github.com/varnishcache/varnish-cache/pull/2680
*/
#ifndef HAVE_DECL_VRT_DIRECTORRESOLVE
#include <cache/cache_director.h>
static VCL_BACKEND
......@@ -60,7 +60,7 @@ VRT_DirectorResolve(VRT_CTX, VCL_BACKEND d)
AN(d->vdir);
return (d);
}
#endif
/* ------------------------------------------------------------
*/
......
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