提交 bed4afa8 编写于 作者: P Pauli

Fix glibc specific conditional for Mac OS/X

MacOS seems to define __GLIBC__ but not __GLIBC_PREREQ.
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5269)
上级 2b66fd57
...@@ -231,7 +231,8 @@ static uint64_t get_timer_bits(void) ...@@ -231,7 +231,8 @@ static uint64_t get_timer_bits(void)
# if defined(_POSIX_C_SOURCE) \ # if defined(_POSIX_C_SOURCE) \
&& defined(_POSIX_TIMERS) \ && defined(_POSIX_TIMERS) \
&& _POSIX_C_SOURCE >= 199309L \ && _POSIX_C_SOURCE >= 199309L \
&& (!defined(__GLIBC__) || __GLIBC_PREREQ(2, 17)) && (!defined(__GLIBC__) \
|| (defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 17)))
{ {
struct timespec ts; struct timespec ts;
clockid_t cid; clockid_t cid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册