]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
lua: build failure when rrd graph is disabled. (#900)
authorKarl Palsson <karlp@tweak.net.au>
Fri, 17 Aug 2018 07:52:54 +0000 (07:52 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 17 Aug 2018 07:52:54 +0000 (09:52 +0200)
Needs the same protection used elsewhere in the file.

Signed-off-by: Karl Palsson <karlp@etactica.com>
bindings/lua/rrdlua.c

index da8cab7615e8173e24f789b1ce3029047bdd1205..d473dbfd72062904d3b5a75c346bae37377aea72 100644 (file)
@@ -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}
 };