X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tool.h;fp=src%2Frrd_tool.h;h=131dcbb97e86fd570a8a97647fb96c72fc1d49ef;hp=8f0e3c392a9b5eefc97b506934328ab630b340dc;hb=58f0dbba0090989a047c65f2590698a29b70df36;hpb=6e2ec26b9eb246b0a2b28f91c3f1595f51611f4a diff --git a/src/rrd_tool.h b/src/rrd_tool.h index 8f0e3c3..131dcbb 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -50,8 +50,12 @@ extern "C" { #endif /* local include files -- need to be after the system ones */ +#ifdef HAVE_GETOPT_LONG +#define _GNU_SOURCE +#include +#else #include "rrd_getopt.h" -#include "rrd_format.h" +#endif #ifndef max #define max(a,b) ((a) > (b) ? (a) : (b))