]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
support HAVE_RRD_GRAPH 509/head
authorTobias Oetiker <tobi@oetiker.ch>
Fri, 27 Jun 2014 07:48:26 +0000 (09:48 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 27 Jun 2014 07:48:26 +0000 (09:48 +0200)
bindings/tcl/tclrrd.c

index c9fb89523eb2de3d12d98311155af3b9fbb11d60..4f905ddf2b9b492855b1db9a328772801ae483a7 100644 (file)
@@ -453,7 +453,7 @@ static int Rrd_Fetch(
     return TCL_OK;
 }
 
-
+#ifdef HAVE_RRD_GRAPH
 
 static int Rrd_Graph(
     ClientData __attribute__((unused)) clientData,
@@ -563,7 +563,7 @@ static int Rrd_Graph(
     return TCL_OK;
 }
 
-
+#endif
 
 static int Rrd_Tune(
     ClientData __attribute__((unused)) clientData,
@@ -655,11 +655,13 @@ static CmdInfo rrdCmds[] = {
     {"Rrd::lastupdate", Rrd_Lastupdate, 0}, /* Thread-safe version */
     {"Rrd::update", Rrd_Update, 1}, /* Thread-safe version */
     {"Rrd::fetch", Rrd_Fetch, 0},
+#ifdef HAVE_RRD_GRAPH
     {"Rrd::graph", Rrd_Graph, 1},   /* Due to RRD's API, a safe
                                        interpreter cannot create
                                        a graph since it writes to
                                        a filename supplied by the
                                        caller */
+#endif
     {"Rrd::tune", Rrd_Tune, 1},
     {"Rrd::resize", Rrd_Resize, 1},
     {"Rrd::restore", Rrd_Restore, 1},