DJGPP update.

PR: 989
Submitted by: Doug Kaufman
This commit is contained in:
Andy Polyakov
2005-01-04 10:21:55 +00:00
parent 76d088046c
commit b58560b915
6 changed files with 21 additions and 6 deletions

View File

@@ -167,7 +167,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