diff options
author | Adam Langley <agl@chromium.org> | 2014-07-11 04:07:14 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-07-11 23:04:04 +0400 |
commit | 0113a4fb60c3b6e9e93a217d5b4d373eb343a8c6 (patch) | |
tree | 249fa04520e982bfe7c62b9342070a366288e2cc /crypto/rand | |
parent | 925fee36e1f6dcad56e60fccca5fa069e09979f7 (diff) |
Support building with PNaCl.
PNaCl needs OPENSSL_NO_ASM to work and a couple of cases were missing
because it hasn't previously been tested.
Additionally, it defined _BSD_SOURCE and others on the command line,
causing duplicate definition errors when defined in source code.
It's missing readdir_r.
It uses newlib, which appears to use u_short in socket.h without ever
defining it.
Change-Id: Ieccfc7365723d0521f6327eebe9f44a2afc57406
Reviewed-on: https://boringssl-review.googlesource.com/1140
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/urandom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/urandom.c b/crypto/rand/urandom.c index 44fe1d65..6cd92719 100644 --- a/crypto/rand/urandom.c +++ b/crypto/rand/urandom.c @@ -91,7 +91,7 @@ static int urandom_get_fd_locked() { if (urandom_fd != -2) return urandom_fd; - urandom_fd = open("/dev/urandom", O_RDONLY | O_NOCTTY); + urandom_fd = open("/dev/urandom", O_RDONLY); return urandom_fd; } |