From: Sebastian Harl Date: Tue, 24 Apr 2007 22:17:06 +0000 (+0200) Subject: myplugin.c: Include string.h and math.h. X-Git-Tag: collectd-4.0.2-1~45^2~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=652b16b21a5c1ff41cb8fe93ad56494c05877074;p=pkg-collectd.git myplugin.c: Include string.h and math.h. --- diff --git a/debian/examples/myplugin.c b/debian/examples/myplugin.c index 1979e2d..2b3212a 100644 --- a/debian/examples/myplugin.c +++ b/debian/examples/myplugin.c @@ -21,6 +21,18 @@ #include #include +#include + +#ifndef __USE_ISOC99 /* required for NAN */ +# define DISABLE_ISOC99 1 +# define __USE_ISOC99 1 +#endif /* !defined(__USE_ISOC99) */ +#include +#if DISABLE_ISOC99 +# undef DISABLE_ISOC99 +# undef __USE_ISOC99 +#endif /* DISABLE_ISOC99 */ + #include #include #include