From 4c41ea66bcafbb7654af1e4d656a3a542b8d56e8 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 27 Oct 2014 08:38:53 +0100 Subject: [PATCH] Include pthread.h in plugin.h to get pthread_t definition. --- src/daemon/plugin.c | 4 ---- src/daemon/plugin.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2