← Commit list

930f2e8227

Viktor Szakats
Viktor Szakats
2026-03-30
SUCCESS Duration: 239s

Subject

build: drop duplicate `pthread.h` includes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_threads.h+0 -3
@@ -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
lib/easy_lock.h+0 -2
@@ -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)
lib/thrdpool.c+0 -4
@@ -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"
lib/thrdqueue.c+0 -4
@@ -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"
tests/libtest/lib1565.c+0 -1
@@ -24,7 +24,6 @@
#include "first.h"
#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
#define CONN_NUM 3
#define TIME_BETWEEN_START_SECS 2
tests/libtest/lib3026.c+0 -1
@@ -85,7 +85,6 @@ cleanup:
}
#elif defined(HAVE_PTHREAD_H)
-#include <pthread.h>
static void *t3026_run_thread(void *ptr)
{