crypto/uid.c: use own macro as guard rather than AT_SECURE
authorRichard Levitte <levitte@openssl.org>
Thu, 20 Dec 2018 09:17:38 +0000 (10:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 16 Jan 2019 05:21:32 +0000 (06:21 +0100)
commit6ffcd10ade7fac6cd08dff3dba304b9d8d9de0a4
treeb49e459217634b5c3e874409f4f480a6c04339d8
parent0c13c8ece1fd88acf757e385bbc865e1e94382ed
crypto/uid.c: use own macro as guard rather than AT_SECURE

It turns out that AT_SECURE may be defined through other means than
our inclusion of sys/auxv.h, so to be on the safe side, we define our
own guard and use that to determine if getauxval() should be used or
not.

Fixes #7932

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7933)

(cherry picked from commit aefb980c45134d84f1757de1a9c61d699c8a7e33)
crypto/uid.c