summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ba
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-ba
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-ba')
-rw-r--r--x11/xview-lib/patches/patch-ba14
1 files changed, 11 insertions, 3 deletions
diff --git a/x11/xview-lib/patches/patch-ba b/x11/xview-lib/patches/patch-ba
index 8f976a7e3e1..86dd2ce074a 100644
--- a/x11/xview-lib/patches/patch-ba
+++ b/x11/xview-lib/patches/patch-ba
@@ -1,8 +1,8 @@
-$NetBSD: patch-ba,v 1.1 2001/12/20 09:19:56 tron Exp $
+$NetBSD: patch-ba,v 1.2 2006/01/05 18:25:57 joerg Exp $
--- lib/libxview/selection/sel_util.c.orig Tue Jun 29 07:16:03 1993
+++ lib/libxview/selection/sel_util.c Thu Dec 20 10:09:17 2001
-@@ -23,6 +23,7 @@
+@@ -23,6 +23,7 @@ static void tvdiff();
static void FreeMultiProp();
static int SelMatchReply();
static Sel_req_tbl *SelMatchReqTbl();
@@ -10,7 +10,15 @@ $NetBSD: patch-ba,v 1.1 2001/12/20 09:19:56 tron Exp $
Pkg_private struct timeval *
xv_sel_cvt_xtime_to_timeval( XTime )
-@@ -601,7 +602,7 @@
+@@ -510,7 +511,6 @@ char *arg;
+ int result;
+ struct timeval timeout;
+ struct timeval starttime, curtime, diff1, diff2;
+- extern int errno;
+
+ timeout.tv_sec = seconds;
+ timeout.tv_usec = 0;
+@@ -601,7 +601,7 @@ Sel_reply_info *reply;
reqTbl->reply = reply;
reqTbl->next = NULL;
(void)XSaveContext( dpy, DefaultRootWindow(dpy),replyCtx,