Only call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on older
authorkettenis <kettenis@openbsd.org>
Wed, 16 Jul 2014 14:26:47 +0000 (14:26 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 16 Jul 2014 14:26:47 +0000 (14:26 +0000)
commit912a9ab18d01975be4672a32e257dd6d67a025dd
tree81bcd60cef85ffa11fdebe9a5983077c8b404482
parent6fa005e1be74df4cf1c19a1f3183397865131e1e
Only call getauxval(3) if HAVE_GETAUXVAL is defined.  Fixes build on older
Linux (such as Ubuntu 12.04LTS) that don't have it yet.  Seems the AT_XXX
defines are pulled in by <link.h> now.

ok beck@
lib/libcrypto/arc4random/getentropy_linux.c
lib/libcrypto/crypto/getentropy_linux.c