diff options
author | Andy Polyakov <appro@openssl.org> | 2005-01-04 10:28:38 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-01-04 10:28:38 +0000 |
commit | 02a00bb054d81110fdf5dadfee71d01710efcbfc (patch) | |
tree | 5ee57138bc30c491778a1562447e24faea55f7bb /crypto/rand/rand_unix.c | |
parent | 3b4de6e4cc91516f799849307be1204f6b5f2f4a (diff) |
DJGPP update.
PR: 989
Submitted by: Doug Kaufman
Diffstat (limited to 'crypto/rand/rand_unix.c')
-rw-r--r-- | crypto/rand/rand_unix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index d2fdb35b56..abdab862e2 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -168,7 +168,13 @@ int RAND_poll(void) for (randomfile = randomfiles; *randomfile && n < ENTROPY_NEEDED; randomfile++) { - if ((fd = open(*randomfile, O_RDONLY|O_NONBLOCK + if ((fd = open(*randomfile, O_RDONLY +#ifdef O_NONBLOCK + |O_NONBLOCK +#endif +#ifdef O_BINARY + |O_BINARY +#endif #ifdef O_NOCTTY /* If it happens to be a TTY (god forbid), do not make it our controlling tty */ |O_NOCTTY |