aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-12-28 21:02:05 +0100
committerThomas Jansen <mithi@mithi.net>2008-12-28 21:02:05 +0100
commit5e3dc6946f13e721030b887b60e383b58879bc62 (patch)
tree18ab532882626e9af988f6c62f4c69994d72421e
parentf31b4f46e17f2af17b4d6549d16e8f111b21688d (diff)
downloadmpd-5e3dc6946f13e721030b887b60e383b58879bc62.tar.gz
mpd-5e3dc6946f13e721030b887b60e383b58879bc62.tar.xz
mpd-5e3dc6946f13e721030b887b60e383b58879bc62.zip
Include <pthread.h> where it is necessary only
-rw-r--r--src/decoder_thread.c1
-rw-r--r--src/dirvec.c1
-rw-r--r--src/log.c1
-rw-r--r--src/os_compat.h1
-rw-r--r--src/output_control.c1
5 files changed, 2 insertions, 3 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 2be0937da..093c67f90 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -28,6 +28,7 @@
#include "log.h"
#include "ls.h"
+#include <pthread.h>
#include <glib.h>
static bool
diff --git a/src/dirvec.c b/src/dirvec.c
index a9e59ab68..b24512a1c 100644
--- a/src/dirvec.c
+++ b/src/dirvec.c
@@ -5,6 +5,7 @@
#include <string.h>
#include <glib.h>
+#include <pthread.h>
static pthread_mutex_t nr_lock = PTHREAD_MUTEX_INITIALIZER;
diff --git a/src/log.c b/src/log.c
index d6caaa09d..ed917fcb4 100644
--- a/src/log.c
+++ b/src/log.c
@@ -32,7 +32,6 @@
#include <time.h>
#include <unistd.h>
#include <errno.h>
-#include <pthread.h>
#include <glib.h>
#ifdef HAVE_SYSLOG
diff --git a/src/os_compat.h b/src/os_compat.h
index a034af10c..0a9673bc0 100644
--- a/src/os_compat.h
+++ b/src/os_compat.h
@@ -48,7 +48,6 @@
#include <errno.h>
#include <assert.h>
#include <sys/param.h>
-#include <pthread.h>
#include <sys/ioctl.h>
#include <ctype.h>
#include <stdarg.h>
diff --git a/src/output_control.c b/src/output_control.c
index 26e9b3cd3..4bf398d0a 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -22,7 +22,6 @@
#include "output_thread.h"
#include "pcm_utils.h"
-#include <pthread.h>
#include <assert.h>
#include <stdlib.h>