aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_threads.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2013-12-24 23:10:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2013-12-25 00:28:28 +0100
commite8b57d1e849c80652b762130f38beeb0d431b23f (patch)
treec8038cea99acbf6be8a26b077cc4e22b8e1eb1b0 /lib/curl_threads.h
parent7fd490732acdccc2c0f490a31a3828fa7a284f63 (diff)
threaded resolver: Use pthread_t * for curl_thread_t
... since pthread_t may be non-scalar and/or may represent a real thread with scalar 0. Bug: http://curl.haxx.se/bug/view.cgi?id=1314
Diffstat (limited to 'lib/curl_threads.h')
-rw-r--r--lib/curl_threads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_threads.h b/lib/curl_threads.h
index d9cec6b29..6457cbb19 100644
--- a/lib/curl_threads.h
+++ b/lib/curl_threads.h
@@ -26,8 +26,8 @@
#if defined(USE_THREADS_POSIX)
# define CURL_STDCALL
# define curl_mutex_t pthread_mutex_t
-# define curl_thread_t pthread_t
-# define curl_thread_t_null (pthread_t)0
+# define curl_thread_t pthread_t *
+# define curl_thread_t_null (pthread_t *)0
# define Curl_mutex_init(m) pthread_mutex_init(m, NULL)
# define Curl_mutex_acquire(m) pthread_mutex_lock(m)
# define Curl_mutex_release(m) pthread_mutex_unlock(m)