commit | ff17671bc630d294903aa2827b76156590b09629 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jun 13 01:02:46 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jun 12 03:32:07 2014 +0000 |
tree | 3d4960f4bb5e7c8a19c7b75e42dc321cef42fc58 | |
parent | 5d25d5480ab1e02d8f1e39f5936a3180e84a842c [diff] | |
parent | 3fb5097a7eec40404760c304b36c8b657b374cab [diff] |
Merge "Add a hack to <stdlib.h> until we can fix libvpx."
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 0f985e2..239f186 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h
@@ -106,6 +106,12 @@ #define RAND_MAX 0x7fffffff +/* Work around x86 libvpx build breakage caused by postproc_x86.c. */ +#if defined(__i386__) && defined(rand) +#undef rand +#define __rand lrand48 +#endif + int rand(void); int rand_r(unsigned int*); void srand(unsigned int);