From: Karl Palsson Date: Fri, 17 Aug 2018 07:52:54 +0000 (+0000) Subject: lua: build failure when rrd graph is disabled. (#900) X-Git-Tag: v1.7.1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2098d4b61c53cb784497765db41d688ccca3ea5;p=thirdparty%2Frrdtool-1.x.git lua: build failure when rrd graph is disabled. (#900) Needs the same protection used elsewhere in the file. Signed-off-by: Karl Palsson --- diff --git a/bindings/lua/rrdlua.c b/bindings/lua/rrdlua.c index da8cab76..d473dbfd 100644 --- a/bindings/lua/rrdlua.c +++ b/bindings/lua/rrdlua.c @@ -377,7 +377,9 @@ static const struct luaL_Reg rrd[] = { #if defined(DINF) {"info", lua_rrd_info}, {"updatev", lua_rrd_updatev}, +#ifdef HAVE_RRD_GRAPH {"graphv", lua_rrd_graphv}, +#endif #endif {NULL, NULL} };