aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/cpr.c')
-rw-r--r--g10/cpr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/cpr.c b/g10/cpr.c
index cb4de6339..365295400 100644
--- a/g10/cpr.c
+++ b/g10/cpr.c
@@ -24,7 +24,9 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
-#include <signal.h>
+#ifdef HAVE_SIGNAL_H
+# include <signal.h>
+#endif
#include "gpg.h"
#include "util.h"
@@ -312,7 +314,9 @@ myread(int fd, void *buf, size_t count)
}
else { /* Ctrl-D not caught - do something reasonable */
#ifdef HAVE_DOSISH_SYSTEM
+#ifndef HAVE_W32CE_SYSTEM
raise (SIGINT); /* nothing to hangup under DOS */
+#endif
#else
raise (SIGHUP); /* no more input data */
#endif