HADOOP-11787. OpensslSecureRandom.c pthread_threadid_np usage signature is wrong on 32-bit Mac. Contributed by Kiran Kumar M R.

(cherry picked from commit a3a96a07fa)
This commit is contained in:
cnauroth 2015-04-01 11:40:09 -07:00
parent 2ca2515b33
commit 726024faa5
2 changed files with 6 additions and 1 deletions

View File

@ -768,6 +768,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11754. RM fails to start in non-secure mode due to authentication
filter failure. (wheat9)
HADOOP-11787. OpensslSecureRandom.c pthread_threadid_np usage signature is
wrong on 32-bit Mac. (Kiran Kumar M R via cnauroth)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -286,7 +286,9 @@ static unsigned long pthreads_thread_id(void)
#elif defined(__sun)
thread_id = (unsigned long)pthread_self();
#elif defined(__APPLE__)
(void)pthread_threadid_np(pthread_self(), &thread_id);
__uint64_t tmp_thread_id;
(void)pthread_threadid_np(pthread_self(), &tmp_thread_id);
thread_id = (unsigned long)tmp_thread_id;
#else
#error "Platform not supported"
#endif