From 0308ad2ce53f73368f265d5e7ee4c0e9f07600a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 26 Nov 2014 22:50:19 +0100 Subject: [PATCH] crypto: cast uv_thread_t to unsigned long Should work in all platforms and it fixes this compilation problem on OSX: ../src/node_crypto.cc:154:3: error: no matching function for call to 'CRYPTO_THREADID_set_numeric' CRYPTO_THREADID_set_numeric(tid, uv_thread_self()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/openssl/openssl/include/openssl/../../crypto/crypto.h:435:6: note: candidate function not viable: no known conversion from 'uv_thread_t' (aka '_opaque_pthread_t *') to 'unsigned long' for 2nd argument void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID *id, unsigned long val); ^ 1 error generated. PR-URL: https://github.com/joyent/node/pull/8785 Reviewed-by: Trevor Norris --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 7a35314a94..51aed486be 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -151,7 +151,7 @@ template int SSLWrap::TLSExtStatusCallback(SSL* s, void* arg); static void crypto_threadid_cb(CRYPTO_THREADID* tid) { - CRYPTO_THREADID_set_numeric(tid, uv_thread_self()); + CRYPTO_THREADID_set_numeric(tid, (unsigned long) uv_thread_self()); }