diff --git a/src/node_crypto.cc b/src/node_crypto.cc index c5770f84009..f04657960e2 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -33,17 +33,8 @@ #endif #include - #include -/* Sigh. */ -#ifdef _WIN32 -# include -#else -# include -#endif - - #if OPENSSL_VERSION_NUMBER >= 0x10000000L # define OPENSSL_CONST const #else @@ -94,15 +85,7 @@ static uv_rwlock_t* locks; static void crypto_threadid_cb(CRYPTO_THREADID* tid) { - unsigned long val; - -#ifdef _WIN32 - val = static_cast(GetCurrentThreadId()); -#else - val = (unsigned long) pthread_self(); -#endif - - CRYPTO_THREADID_set_numeric(tid, val); + CRYPTO_THREADID_set_numeric(tid, uv_thread_self()); }