From 02a00bb054d81110fdf5dadfee71d01710efcbfc Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 4 Jan 2005 10:28:38 +0000 Subject: DJGPP update. PR: 989 Submitted by: Doug Kaufman --- crypto/rand/rand_unix.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crypto/rand/rand_unix.c') 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 -- cgit v1.2.3