--- kwebwatch/main.cpp.orig Sun Aug 8 19:10:47 1999 +++ kwebwatch/main.cpp Sat Jun 17 02:49:46 2000 @@ -23,14 +23,20 @@ /* main.cpp */ +#if defined(HAVE_CONFIG_H) +#include <../config.h> +#endif +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #include #include #include "mainwidget.h" -#if defined(__hpux) +#if defined(__hpux) || (defined(BSD) && (BSD >= 199103)) static void SigChild(int) { int pid; @@ -69,6 +75,9 @@ // With SysV all we need to do is ignore the signal. // With BSD, however, we have to catch each signal // and execute the wait3() system call. +#if (defined(BSD) && (BSD >= 199103)) + signal(SIGCHLD, SigChild); +#else #if defined(__hpux) signal(SIGCLD, SigChild); #else @@ -82,6 +91,7 @@ sigignore(SIGCHLD); #else signal(SIGCLD, SIG_IGN); +#endif #endif #endif