aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/rndunix.c')
-rw-r--r--cipher/rndunix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cipher/rndunix.c b/cipher/rndunix.c
index 9e49ebc75..f0b631975 100644
--- a/cipher/rndunix.c
+++ b/cipher/rndunix.c
@@ -58,6 +58,9 @@
#include "dynload.h"
#endif
+#ifndef EAGAIN
+ #define EAGAIN EWOULDBLOCK
+#endif
#define GATHER_BUFSIZE 49152 /* Usually about 25K are filled */
@@ -426,7 +429,11 @@ slow_poll(FILE *dbgfp, int dbgall, size_t *nbytes )
dataSources[i].pipeFD = fileno(dataSources[i].pipe);
if (dataSources[i].pipeFD > maxFD)
maxFD = dataSources[i].pipeFD;
+ #ifdef O_NONBLOCK /* Ohhh what a hack (used for Atari) */
fcntl(dataSources[i].pipeFD, F_SETFL, O_NONBLOCK);
+ #else
+ #warning O_NONBLOCK is missing
+ #endif
FD_SET(dataSources[i].pipeFD, &fds);
dataSources[i].length = 0;