aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/xview
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-01-20 11:38:25 +0800
committerasami <asami@FreeBSD.org>2000-01-20 11:38:25 +0800
commit2b640a4692e5633993e8d64c5f6eb1e11839453c (patch)
tree7ceb1b113680f8becad5531123097d601942475b /x11-toolkits/xview
parent8cab49f722b73ede199bfb8fbb1204a8f6844a6b (diff)
downloadfreebsd-ports-gnome-2b640a4692e5633993e8d64c5f6eb1e11839453c.tar.gz
freebsd-ports-gnome-2b640a4692e5633993e8d64c5f6eb1e11839453c.tar.zst
freebsd-ports-gnome-2b640a4692e5633993e8d64c5f6eb1e11839453c.zip
Fix for sigset_t changes in -current.
PR: 16174 Submitted by: Alexander Langer <alex@cichlids.com>
Diffstat (limited to 'x11-toolkits/xview')
-rw-r--r--x11-toolkits/xview/files/patch-li33
-rw-r--r--x11-toolkits/xview/files/patch-lo36
2 files changed, 36 insertions, 33 deletions
diff --git a/x11-toolkits/xview/files/patch-li b/x11-toolkits/xview/files/patch-li
index 11d903660c53..a1cf1d03031d 100644
--- a/x11-toolkits/xview/files/patch-li
+++ b/x11-toolkits/xview/files/patch-li
@@ -1168,39 +1168,6 @@ diff -rc ../old/xview3.2p1-X11R6/lib/libxview/notify/ndet_read.c ./lib/libxview/
{
int ndelay;
Notify_error return_code;
-diff -rc ../old/xview3.2p1-X11R6/lib/libxview/notify/ntfy.h ./lib/libxview/notify/ntfy.h
-*** ../old/xview3.2p1-X11R6/lib/libxview/notify/ntfy.h Tue Jun 29 01:18:14 1993
---- ./lib/libxview/notify/ntfy.h Sun Nov 20 13:39:05 1994
-***************
-*** 22,27 ****
---- 22,31 ----
- #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,155 ****
- */
- typedef struct ntfy_wait3_data {
- int pid; /* Process waiting for */
-! #ifndef SVR4
- union wait status; /* Return value from wait3 */
- #else SVR4
- int status; /* Return value from wait3 */
---- 153,159 ----
- */
- typedef struct ntfy_wait3_data {
- int pid; /* Process waiting for */
-! #if !defined(SVR4) && !(defined(BSD) && (BSD >= 199103))
- union wait status; /* Return value from wait3 */
- #else SVR4
- int status; /* Return value from wait3 */
diff -rc ../old/xview3.2p1-X11R6/lib/libxview/notify/ntfy_test.c ./lib/libxview/notify/ntfy_test.c
*** ../old/xview3.2p1-X11R6/lib/libxview/notify/ntfy_test.c Tue Jun 29 01:18:12 1993
--- ./lib/libxview/notify/ntfy_test.c Sun Nov 20 13:39:05 1994
diff --git a/x11-toolkits/xview/files/patch-lo b/x11-toolkits/xview/files/patch-lo
new file mode 100644
index 000000000000..570132f101cb
--- /dev/null
+++ b/x11-toolkits/xview/files/patch-lo
@@ -0,0 +1,36 @@
+--- 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
+
+ /*