mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:01:41 +03:00
build: drop duplicate pthread.h includes
Already included from `curl_setup.h`. Closes #21144
This commit is contained in:
parent
3c72928471
commit
930f2e8227
6 changed files with 0 additions and 15 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue