[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
daemonsub.c
Once it uses wait() it needs wait headers:
Index: router/daemonsub.c
===================================================================
RCS file: /cvsroot/zmailer/router/daemonsub.c,v
retrieving revision 1.15
diff -u -r1.15 daemonsub.c
--- router/daemonsub.c 2002/10/04 14:50:55 1.15
+++ router/daemonsub.c 2002/10/04 16:50:31
@@ -26,6 +26,27 @@
#include <sys/un.h>
#endif
+#ifdef HAVE_WAITPID
+# include <sys/wait.h>
+#else
+# ifdef HAVE_WAIT3
+# include <sys/wait.h> /* Has BSD wait3() */
+# else
+# ifdef HAVE_SYS_WAIT_H /* POSIX.1 compatible */
+# include <sys/wait.h>
+# else /* Not POSIX.1 compatible, lets fake it.. */
+extern int wait();
+# endif
+# endif
+#endif
+
+#ifndef WEXITSTATUS
+# define WEXITSTATUS(s) (((s) >> 8) & 0377)
+#endif
+#ifndef WSIGNALSTATUS
+# define WSIGNALSTATUS(s) ((s) & 0177)
+#endif
+
#include "zsyslog.h"
#include "shmmib.h"
#include "sysexits.h"
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi
- Follow-Ups:
- Re: daemonsub.c
- From: Matti Aarnio <mea@nic.funet.fi> (Sat, 5 Oct 2002 00:36:19 +0300)