summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dw
diff options
context:
space:
mode:
authortron <tron>2001-12-20 09:19:53 +0000
committertron <tron>2001-12-20 09:19:53 +0000
commit466ed08f5827f779c8d246edcb727f46e89de431 (patch)
tree4f262d25e837db12d2b8bd96b651b1c07c0cad61 /x11/xview-lib/patches/patch-dw
parent9f677650638e78da433bbf2a651032f5515999b3 (diff)
downloadpkgsrc-466ed08f5827f779c8d246edcb727f46e89de431.tar.gz
Cleanup patch files:
- unified format - only one patch per file - no files gets patched twice
Diffstat (limited to 'x11/xview-lib/patches/patch-dw')
-rw-r--r--x11/xview-lib/patches/patch-dw16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-dw b/x11/xview-lib/patches/patch-dw
new file mode 100644
index 00000000000..f9f358d173b
--- /dev/null
+++ b/x11/xview-lib/patches/patch-dw
@@ -0,0 +1,16 @@
+$NetBSD: patch-dw,v 1.1 2001/12/20 09:20:08 tron Exp $
+
+--- lib/libxview/notify/ndisdispch.c.orig Tue Jun 29 07:18:06 1993
++++ lib/libxview/notify/ndisdispch.c Thu Dec 20 10:09:27 2001
+@@ -30,8 +30,9 @@
+ #define GETDTABLESIZE() \
+ (dtablesize_cache?dtablesize_cache:(dtablesize_cache=(int)sysconf(_SC_OPEN_MAX)))
+ #else
+-#define GETDTABLESIZE() \
+- (dtablesize_cache?dtablesize_cache:(dtablesize_cache=getdtablesize()))
++#define GETDTABLESIZE() \
++ (dtablesize_cache ? dtablesize_cache : \
++ (dtablesize_cache = MIN(getdtablesize(), FD_SETSIZE)))
+ #endif SVR4
+
+ pkg_private_data u_int ndis_flags = 0;