Shared/OpenSSLCrypto: Add switch to fix build under Mac

This commit is contained in:
Gacko
2014-01-22 21:44:15 +01:00
parent 0db2549775
commit 678814836d

View File

@@ -33,7 +33,12 @@ static void lockingCallback(int mode, int type, const char* /*file*/, int /*line
static void threadIdCallback(CRYPTO_THREADID * id)
{
/// ACE_thread_t turns out to be a struct under Mac OS.
#ifndef __APPLE__
CRYPTO_THREADID_set_numeric(id, ACE_Thread::self());
#else
CRYPTO_THREADID_set_pointer(id, ACE_Thread::self());
#endif
}
void OpenSSLCrypto::threadsSetup()