1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/x11-toolkits/xview/files/patch-lo
Satoshi Asami dbddd321ba Fix for sigset_t changes in -current.
PR:		16174
Submitted by:	Alexander Langer <alex@cichlids.com>
2000-01-20 03:38:25 +00:00

37 lines
966 B
Plaintext

--- lib/libxview/notify/ntfy.h.orig Tue Jun 29 07:18:14 1993
+++ lib/libxview/notify/ntfy.h Mon Jan 10 15:50:53 2000
@@ -22,6 +22,10 @@
#include <sys/rusage.h>
#endif
#include <sys/resource.h>
+#if (defined(BSD) && (BSD >= 199103))
+#include <sys/wait.h>
+#include <sys/signal.h>
+#endif
#include <xview/notify.h>
/*
@@ -149,7 +153,7 @@
*/
typedef struct ntfy_wait3_data {
int pid; /* Process waiting for */
-#ifndef SVR4
+#if !defined(SVR4) && !(defined(BSD) && (BSD >= 199103))
union wait status; /* Return value from wait3 */
#else SVR4
int status; /* Return value from wait3 */
@@ -188,7 +197,12 @@
#define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \
| ((s)->__sigbits[2]) | ((s)->__sigbits[3])))
#else
-#define sigisempty(s) (!(*(s)))
+static int
+sigisempty (sigset_t *s) {
+ sigset_t n;
+ bzero(&n, sizeof(sigset_t));
+ return (! memcmp(&n, s, sizeof(sigset_t)));
+}
#endif
/*