changeset 10334:5aa8ed1ec91e

[gaim-migrate @ 11541] "I love a circus." --Guybrush Threepwood committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Dec 2004 02:24:01 +0000
parents 5eb81f349da7
children 20e750dd21a0
files src/gtkmain.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkmain.c	Thu Dec 09 02:12:18 2004 +0000
+++ b/src/gtkmain.c	Thu Dec 09 02:24:01 2004 +0000
@@ -129,19 +129,18 @@
 static void
 clean_pid(void)
 {
-#ifndef _WIN32
 	int status;
 	pid_t pid;
 
 	do {
 		pid = waitpid(-1, &status, WNOHANG);
 	} while (pid != 0 && pid != (pid_t)-1);
-	if(pid == (pid_t)-1 && errno != ECHILD) {
+
+	if ((pid == (pid_t) - 1) && (errno != ECHILD)) {
 		char errmsg[BUFSIZ];
 		snprintf(errmsg, BUFSIZ, "Warning: waitpid() returned %d", pid);
 		perror(errmsg);
 	}
-#endif
 }
 
 void
@@ -449,7 +448,9 @@
 	gboolean gui_check;
 	gboolean debug_enabled;
 	gchar *gaimrc, *accountsxml;
+#if HAVE_SIGNAL_H
 	char errmsg[BUFSIZ];
+#endif
 
 	struct option long_options[] = {
 		{"acct",     no_argument,       NULL, 'a'},