summaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-01-16 09:29:29 +0100
committerWerner Koch <wk@gnupg.org>1999-01-16 09:29:29 +0100
commit29c08419dbb0828d9a17a8a8428a028c9c35d8e4 (patch)
treea30c238693ebae52c36f0f2b59137c499bbdd393 /cipher
parentSee ChangeLog: Wed Jan 13 14:10:15 CET 1999 Werner Koch (diff)
downloadgnupg2-29c08419dbb0828d9a17a8a8428a028c9c35d8e4.tar.xz
gnupg2-29c08419dbb0828d9a17a8a8428a028c9c35d8e4.zip
See ChangeLog: Sat Jan 16 09:27:30 CET 1999 Werner Koch
Diffstat (limited to 'cipher')
-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;