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~67 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c7f11f396798c6d93490c10c07770d48521646a;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