Use NAME_MAX when available. Don't try to fake a FILE on DragonFly. The implementation of textsw_scanf can be improved, it is very defensively and slow ATM, the snprintf usage should be portable. Fix a number of prototype mismatches, e.g. variable argument functions can conflict with K&R prototypes. Bump revision since the package "compiled" before, e.g. build errors where ignored.
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
$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
|