diff --git a/lib/curl_threads.h b/lib/curl_threads.h index 3be46c7b15..5a1609a2c9 100644 --- a/lib/curl_threads.h +++ b/lib/curl_threads.h @@ -27,9 +27,6 @@ #ifdef USE_MUTEX #ifdef HAVE_THREADS_POSIX -#ifdef HAVE_PTHREAD_H -#include -#endif # define CURL_THREAD_RETURN_T unsigned int # define CURL_STDCALL # define curl_mutex_t pthread_mutex_t diff --git a/lib/easy_lock.h b/lib/easy_lock.h index aa2fea705c..c6732b1a42 100644 --- a/lib/easy_lock.h +++ b/lib/easy_lock.h @@ -86,8 +86,6 @@ static CURL_INLINE void curl_simple_lock_unlock(curl_simple_lock *lock) #elif defined(HAVE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) -#include - #define curl_simple_lock pthread_mutex_t #define CURL_SIMPLE_LOCK_INIT PTHREAD_MUTEX_INITIALIZER #define curl_simple_lock_lock(m) pthread_mutex_lock(m) diff --git a/lib/thrdpool.c b/lib/thrdpool.c index 2cd87094bb..5e83d0a6c8 100644 --- a/lib/thrdpool.c +++ b/lib/thrdpool.c @@ -25,10 +25,6 @@ #ifdef USE_THREADS -#if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) -#include -#endif - #include "llist.h" #include "curl_threads.h" #include "curlx/timeval.h" diff --git a/lib/thrdqueue.c b/lib/thrdqueue.c index c2bd628a4b..c9079f011e 100644 --- a/lib/thrdqueue.c +++ b/lib/thrdqueue.c @@ -25,10 +25,6 @@ #ifdef USE_THREADS -#if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) -#include -#endif - #include "llist.h" #include "curl_threads.h" #include "thrdpool.h" diff --git a/tests/libtest/lib1565.c b/tests/libtest/lib1565.c index 765650af3b..18d50a4dda 100644 --- a/tests/libtest/lib1565.c +++ b/tests/libtest/lib1565.c @@ -24,7 +24,6 @@ #include "first.h" #ifdef HAVE_PTHREAD_H -#include #define CONN_NUM 3 #define TIME_BETWEEN_START_SECS 2 diff --git a/tests/libtest/lib3026.c b/tests/libtest/lib3026.c index 0eb2a14c3b..d025802d19 100644 --- a/tests/libtest/lib3026.c +++ b/tests/libtest/lib3026.c @@ -85,7 +85,6 @@ cleanup: } #elif defined(HAVE_PTHREAD_H) -#include static void *t3026_run_thread(void *ptr) {