summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polyp/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/util.c b/polyp/util.c
index cccb6651..acfa0314 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -35,7 +35,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
-#include <pthread.h>
#include <sys/time.h>
#include <limits.h>
#include <unistd.h>
@@ -48,6 +47,10 @@
#include <sys/resource.h>
#endif
+#ifdef HAVE_PTHREAD
+#include <pthread.h>
+#endif
+
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif