Include pthread.h in plugin.h to get pthread_t definition.
authorLandry Breuil <landry@rhaalovely.net>
Mon, 27 Oct 2014 07:38:53 +0000 (08:38 +0100)
committerLandry Breuil <landry@rhaalovely.net>
Mon, 27 Oct 2014 07:38:53 +0000 (08:38 +0100)
src/daemon/plugin.c
src/daemon/plugin.h

index cd99204..97b794f 100644 (file)
 #include "utils_time.h"
 #include "utils_random.h"
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
 #include <ltdl.h>
 
 /*
index dfc608e..d773e09 100644 (file)
 #include "meta_data.h"
 #include "utils_time.h"
 
+#if HAVE_PTHREAD_H
+# include <pthread.h>
+#endif
+
 #define PLUGIN_FLAGS_GLOBAL 0x0001
 
 #define DATA_MAX_NAME_LEN 64