Guard sys/auxv.h include on !BORINGSSL_ANDROID. Some versions of Android libc don't even include the header. Change-Id: Ib1033d2b8a10ba69d834ac1ed2564870e0e35d61 Reviewed-on: https://boringssl-review.googlesource.com/c/32664 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/crypto/fipsmodule/rand/urandom.c b/crypto/fipsmodule/rand/urandom.c index 777920e..c3b0e66 100644 --- a/crypto/fipsmodule/rand/urandom.c +++ b/crypto/fipsmodule/rand/urandom.c
@@ -33,7 +33,9 @@ #include <linux/random.h> #include <sys/ioctl.h> #endif +#if !defined(OPENSSL_ANDROID) #include <sys/auxv.h> +#endif #include <sys/syscall.h> #endif