From 091117fe002ffc353bedba51326da9232def2306 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Feb 1998 08:13:37 +0000 Subject: Philippe de Muyter's port patches. svn path=/trunk/; revision=1616 --- configure.in | 2 +- daemon.c | 4 ++++ driver.c | 5 +++++ fetchmail.c | 2 ++ rcfile_y.y | 2 ++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3a51afa1..44d453ce 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,7 @@ AC_HEADER_STDC AC_TYPE_SIZE_T AC_TYPE_PID_T AC_TYPE_SIGNAL -AC_CHECK_HEADERS(unistd.h termios.h termio.h sgtty.h stdarg.h alloca.h sys/itimer.h fcntl.h sys/fcntl.h memory.h) +AC_CHECK_HEADERS(unistd.h termios.h termio.h sgtty.h stdarg.h alloca.h sys/itimer.h fcntl.h sys/fcntl.h memory.h sys/wait.h) AC_C_CONST dnl getopt needs this. diff --git a/daemon.c b/daemon.c index f71d0343..5c66ed5a 100644 --- a/daemon.c +++ b/daemon.c @@ -10,7 +10,9 @@ #include #include #include +#ifdef HAVE_SYS_WAIT_H #include +#endif #ifdef HAVE_FCNTL_H #include #else /* !HAVE_FCNTL_H */ @@ -71,6 +73,8 @@ sigchld_handler (int sig) while ((pid = wait3(&status, WNOHANG, 0)) > 0) continue; /* swallow 'em up. */ #else /* Zooks! Nothing to do but wait(), and hope we don't block... */ + int status; + wait(&status); #endif } diff --git a/driver.c b/driver.c index 2548b668..3bf6df4d 100644 --- a/driver.c +++ b/driver.c @@ -38,6 +38,11 @@ #include #include +#ifndef HAVE_STRFTIME /* For ctime prototype */ +#include +#include +#endif + #ifdef HAVE_GETHOSTBYNAME #include #include "mx.h" diff --git a/fetchmail.c b/fetchmail.c index e6c45c02..995da218 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -31,7 +31,9 @@ #include #include #include +#ifdef HAVE_SYS_WAIT_H #include +#endif #ifdef HAVE_GETHOSTBYNAME #include diff --git a/rcfile_y.y b/rcfile_y.y index 9b0573d1..71d8ea4b 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -9,7 +9,9 @@ #include #include #include +#if defined(HAVE_SYS_WAIT_H) #include +#endif #include #include #if defined(STDC_HEADERS) -- cgit v1.2.3