aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-04 14:18:07 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-04 14:18:07 +0000
commit19cf44b979ca6d0c69aef9a4524d876fafc0fb25 (patch)
treed01702d6085297480c0bde7133d260349d1efa2a /src/main.c
parent4f46088c4704534c10487323e0bc0b9d73491b81 (diff)
braced some Unix-specific code with ifdef.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@467 ee746299-78ed-0310-b773-934348b2243d
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);