From: Landry Breuil Date: Mon, 27 Oct 2014 07:38:53 +0000 (+0100) Subject: Include pthread.h in plugin.h to get pthread_t definition. X-Git-Tag: collectd-5.5.0~168^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4c41ea66bcafbb7654af1e4d656a3a542b8d56e8;p=collectd.git Include pthread.h in plugin.h to get pthread_t definition. --- diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index cd992044..97b794f7 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -38,10 +38,6 @@ #include "utils_time.h" #include "utils_random.h" -#if HAVE_PTHREAD_H -# include -#endif - #include /* diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index dfc608e8..d773e094 100644 --- a/src/daemon/plugin.h +++ b/src/daemon/plugin.h @@ -33,6 +33,10 @@ #include "meta_data.h" #include "utils_time.h" +#if HAVE_PTHREAD_H +# include +#endif + #define PLUGIN_FLAGS_GLOBAL 0x0001 #define DATA_MAX_NAME_LEN 64