aboutsummaryrefslogtreecommitdiff
path: root/src/send_message.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-05 07:22:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-05 07:22:10 +0000
commit3ec864159a1792df642a75611363c39fb1fd1cd3 (patch)
tree2441b71b8b443445b7bb1c5d4ac464e70679577f /src/send_message.c
parent6247f6269afff27ecfe2ca9650e151f440ec806a (diff)
enabled compilation with MinGW.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@469 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/send_message.c')
-rw-r--r--src/send_message.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/send_message.c b/src/send_message.c
index 3faef99d..fc67b209 100644
--- a/src/send_message.c
+++ b/src/send_message.c
@@ -31,7 +31,9 @@
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
-#include <sys/wait.h>
+#if HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif
#include "send_message.h"
#include "session.h"
@@ -348,9 +350,11 @@ static gint send_message_local(const gchar *command, FILE *fp)
fd_close(child_stdin);
+#ifdef G_OS_UNIX
waitpid(pid, &status, 0);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
err = TRUE;
+#endif
g_spawn_close_pid(pid);