From e61919ad11fc0ca6749ee4d6855bc8b2c316a8f9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 12 Jun 2014 20:07:47 -0700 Subject: [PATCH] Fix x86-64 libvpx build. This is now fixed upstream, but we need to wait for it to come back down via chromium... Bug: 15598056 Change-Id: I08f1be4296c391cfc1616a5ff0815be14071594a --- libc/include/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 239f18696..266aa5e78 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -106,8 +106,8 @@ extern void arc4random_addrandom(unsigned char *, int); #define RAND_MAX 0x7fffffff -/* Work around x86 libvpx build breakage caused by postproc_x86.c. */ -#if defined(__i386__) && defined(rand) +/* Work around x86/x86-64 libvpx build breakage caused by postproc_x86.c. */ +#if (defined(__i386__) || defined(__x86_64__)) && defined(rand) #undef rand #define __rand lrand48 #endif