aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index eaf79a1d..53c6609d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,7 +38,9 @@
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <signal.h>
+#ifdef G_OS_UNIX
+# include <signal.h>
+#endif
#include <dirent.h>
#if HAVE_LOCALE_H
@@ -341,7 +343,9 @@ int main(int argc, char *argv[])
inc_autocheck_timer_init(mainwin);
/* ignore SIGPIPE signal for preventing sudden death of program */
+#ifdef G_OS_UNIX
signal(SIGPIPE, SIG_IGN);
+#endif
if (cmd.receive_all)
inc_all_account_mail(mainwin, FALSE);