HADOOP-11787. OpensslSecureRandom.c pthread_threadid_np usage signature is wrong on 32-bit Mac. Contributed by Kiran Kumar M R.
(cherry picked from commita3a96a07fa
) (cherry picked from commit726024faa5
)
This commit is contained in:
parent
3acfde6d85
commit
aa326086cc
|
@ -713,6 +713,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HADOOP-11754. RM fails to start in non-secure mode due to authentication
|
HADOOP-11754. RM fails to start in non-secure mode due to authentication
|
||||||
filter failure. (wheat9)
|
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
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -286,7 +286,9 @@ static unsigned long pthreads_thread_id(void)
|
||||||
#elif defined(__sun)
|
#elif defined(__sun)
|
||||||
thread_id = (unsigned long)pthread_self();
|
thread_id = (unsigned long)pthread_self();
|
||||||
#elif defined(__APPLE__)
|
#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
|
#else
|
||||||
#error "Platform not supported"
|
#error "Platform not supported"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue