summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dw
diff options
context:
space:
mode:
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;