summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ds
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-05 18:25:56 +0000
committerjoerg <joerg>2006-01-05 18:25:56 +0000
commit07df95cd7c39efce3270f2102fc5028013331021 (patch)
tree659ad7ad2255232ad9accf5dbc9b4465f2bf905d /x11/xview-lib/patches/patch-ds
parenta6bb44eef8817162faf4de8e298ce24ebda2adeb (diff)
downloadpkgsrc-07df95cd7c39efce3270f2102fc5028013331021.tar.gz
First try on fixing xview. Fix errno. Add DragonFly support.
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.
Diffstat (limited to 'x11/xview-lib/patches/patch-ds')
-rw-r--r--x11/xview-lib/patches/patch-ds8
1 files changed, 4 insertions, 4 deletions
diff --git a/x11/xview-lib/patches/patch-ds b/x11/xview-lib/patches/patch-ds
index 33618860b05..a90bb27d30a 100644
--- a/x11/xview-lib/patches/patch-ds
+++ b/x11/xview-lib/patches/patch-ds
@@ -1,4 +1,4 @@
-$NetBSD: patch-ds,v 1.1 2001/12/20 09:20:08 tron Exp $
+$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
@@ -13,7 +13,7 @@ $NetBSD: patch-ds,v 1.1 2001/12/20 09:20:08 tron Exp $
#include <xview/notify.h>
/*
-@@ -149,7 +153,7 @@
+@@ -149,7 +153,7 @@ typedef struct ntfy_condition {
*/
typedef struct ntfy_wait3_data {
int pid; /* Process waiting for */
@@ -22,7 +22,7 @@ $NetBSD: patch-ds,v 1.1 2001/12/20 09:20:08 tron Exp $
union wait status; /* Return value from wait3 */
#else SVR4
int status; /* Return value from wait3 */
-@@ -184,9 +188,12 @@
+@@ -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 */
@@ -30,7 +30,7 @@ $NetBSD: patch-ds,v 1.1 2001/12/20 09:20:08 tron Exp $
+#if defined(SVR4)
#define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \
| ((s)->__sigbits[2]) | ((s)->__sigbits[3])))
-+#elif defined(__NetBSD__) && (__NetBSD_Version__ > 103080000)
++#elif (defined(__NetBSD__) && (__NetBSD_Version__ > 103080000)) || defined(__DragonFly__)
+#define sigisempty(s) (!(((s)->__bits[0]) | ((s)->__bits[1]) \
+ | ((s)->__bits[2]) | ((s)->__bits[3])))
#else