1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/www/kwebwatch/files/patch-aa
Steve Price 530754aa29 Adding kwebwatch version 0.72.
Monitors your favorite web pages and notifies you of updates.

PR:		19621
Submitted by:	Mario S F Ferreira <lioux@linf.unb.br>
2000-07-10 03:56:18 +00:00

43 lines
906 B
Plaintext

--- 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 <sys/param.h>
+#endif
#include <kapp.h>
#include <signal.h>
#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