summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 22:44:23 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 22:44:23 +0000
commit2f74bb9d437fc165695e1d4bb7516ca979962a49 (patch)
treeb7d1ed38890cf260879f06156fc6a3331ac1ae58
parentbdc02f71f505b6a7b6874a7b3f6beff31355bb7c (diff)
Protect pthread.h with an ifdef.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@417 fefdeb5f-60dc-0310-8127-8f9354f1896f
-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