X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=a262bf1d1fc99621e07b9aea7619351bc736d809;hb=92445ff3363441d0f515de4a3ab92a504cfc0366;hp=0ccf5336e6887f1bce252d8955d98895e4c19ea4;hpb=c60c6dfa5960b23bdc59341ae73e701dd59d4305;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 0ccf5336..a262bf1d 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -56,6 +56,9 @@ #if HAVE_STDINT_H # include #endif +#if HAVE_STDBOOL_H +# include +#endif #if HAVE_UNISTD_H # include #endif @@ -200,9 +203,6 @@ # include #endif -#if HAVE_PTH_H -# include -#endif #if HAVE_SENSORS_SENSORS_H # include #endif @@ -250,6 +250,22 @@ # define __attribute__(x) /**/ #endif +#if __GNUC__ +# pragma GCC poison strcpy strcat strtok +#endif + +/* + * Special hack for the perl plugin: Because the later included perl.h defines + * a macro which is never used, but contains `sprintf', we cannot poison that + * identifies just yet. The parl plugin will do that itself once perl.h is + * included. + */ +#ifndef DONT_POISON_SPRINTF_YET +# if __GNUC__ +# pragma GCC poison sprintf +# endif +#endif + extern char hostname_g[]; extern int interval_g;