From: Tobias Oetiker Date: Thu, 31 Jul 2014 13:58:11 +0000 (+0200) Subject: exclude xport bits if compiled without graph support X-Git-Tag: v1.5.0-rc1~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f6c30bdf34e6bbc27c726e817d5330908cf013d;p=thirdparty%2Frrdtool-1.x.git exclude xport bits if compiled without graph support --- diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 110814eb..2fc4ba24 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -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]";