build: drop duplicate `pthread.h` includes
No binary (build failed)
—
(log yok)
| @@ -27,9 +27,6 @@ | |
| #ifdef USE_MUTEX | |
| #ifdef HAVE_THREADS_POSIX | |
| - | #ifdef HAVE_PTHREAD_H |
| - | #include <pthread.h> |
| - | #endif |
| # define CURL_THREAD_RETURN_T unsigned int | |
| # define CURL_STDCALL | |
| # define curl_mutex_t pthread_mutex_t | |
| @@ -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 <pthread.h> |
| - | |
| #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) | |
| @@ -25,10 +25,6 @@ | |
| #ifdef USE_THREADS | |
| - | #if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) |
| - | #include <pthread.h> |
| - | #endif |
| - | |
| #include "llist.h" | |
| #include "curl_threads.h" | |
| #include "curlx/timeval.h" | |
| @@ -25,10 +25,6 @@ | |
| #ifdef USE_THREADS | |
| - | #if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) |
| - | #include <pthread.h> |
| - | #endif |
| - | |
| #include "llist.h" | |
| #include "curl_threads.h" | |
| #include "thrdpool.h" | |
| @@ -24,7 +24,6 @@ | |
| #include "first.h" | |
| #ifdef HAVE_PTHREAD_H | |
| - | #include <pthread.h> |
| #define CONN_NUM 3 | |
| #define TIME_BETWEEN_START_SECS 2 | |
| @@ -85,7 +85,6 @@ cleanup: | |
| } | |
| #elif defined(HAVE_PTHREAD_H) | |
| - | #include <pthread.h> |
| static void *t3026_run_thread(void *ptr) | |
| { | |