]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
exclude xport bits if compiled without graph support
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 31 Jul 2014 13:58:11 +0000 (15:58 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 31 Jul 2014 13:58:11 +0000 (15:58 +0200)
bindings/python/rrdtoolmodule.c

index 110814eb6d0b2b6071741a808a1cfca83b7eb9ae..2fc4ba248d7c294f78ad05f27c48f22a1f830b36 100644 (file)
@@ -595,6 +595,8 @@ static PyObject *PyRRD_flushcached(
     return r;
 }
 
+#ifdef HAVE_RRD_GRAPH
+
 static char PyRRD_xport__doc__[] =
     "xport(args..): dictionary representation of data stored in RRDs\n"
     "    [-s|--start seconds] [-e|--end seconds] [-m|--maxrows rows]"
@@ -673,6 +675,8 @@ static PyObject *PyRRD_xport(
     return r;
 }
 
+#endif
+
 static char PyRRD_dump__doc__[] =
     "dump - dump an RRD to XML\n"
     "[--header|-h {none,xsd,dtd}] [--no-header]file.rrd [file.xml]";