build: drop duplicate pthread.h includes

Already included from `curl_setup.h`.

Closes #21144
This commit is contained in:
Viktor Szakats 2026-03-28 23:41:31 +01:00
parent 3c72928471
commit 930f2e8227
No known key found for this signature in database
6 changed files with 0 additions and 15 deletions

View file

@ -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

View file

@ -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)

View file

@ -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"

View file

@ -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"

View file

@ -24,7 +24,6 @@
#include "first.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#define CONN_NUM 3
#define TIME_BETWEEN_START_SECS 2

View file

@ -85,7 +85,6 @@ cleanup:
}
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static void *t3026_run_thread(void *ptr)
{