blob: a90bb27d30ad349e436bc6ab326ce55e79e3974f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
$NetBSD: patch-ds,v 1.2 2006/01/05 18:25:57 joerg Exp $
--- lib/libxview/notify/ntfy.h.orig Tue Jun 29 07:18:14 1993
+++ lib/libxview/notify/ntfy.h Thu Dec 20 10:09:36 2001
@@ -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_condition {
*/
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 */
@@ -184,9 +188,12 @@ extern int ntfy_nodes_avail; /* count of
extern sigset_t ntfy_sigs_delayed;/* Bit mask of signals received while in
critical section */
-#ifdef SVR4
+#if defined(SVR4)
#define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \
| ((s)->__sigbits[2]) | ((s)->__sigbits[3])))
+#elif (defined(__NetBSD__) && (__NetBSD_Version__ > 103080000)) || defined(__DragonFly__)
+#define sigisempty(s) (!(((s)->__bits[0]) | ((s)->__bits[1]) \
+ | ((s)->__bits[2]) | ((s)->__bits[3])))
#else
#define sigisempty(s) (!(*(s)))
#endif
|