X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.h;h=459da4dcb40262e7f6edc45b6900b7e722557aa3;hb=7f07c55bac640c7a50d516248a3152235a14af59;hp=0558aa400696183a42e9bac546b56e73e019656c;hpb=85d892df2794d992c8e3554d8990d1306f114c11;p=collectd.git diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 0558aa40..459da4dc 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -239,26 +240,6 @@ #define __attribute__(x) /**/ #endif -#if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ -#undef strcpy -#undef strcat -#undef strtok -#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 defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ -#undef sprintf -#pragma GCC poison sprintf -#endif -#endif - #ifndef GAUGE_FORMAT #define GAUGE_FORMAT "%.15g" #endif