summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ag
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-07-03 21:02:03 +0000
committertron <tron@pkgsrc.org>1998-07-03 21:02:03 +0000
commit6cd87e3403d5e4f05bfc1cee7174e3082d5ead36 (patch)
treeda784db3f97debe40b7c19c6d6fadc7aa5cb8588 /x11/xview-lib/patches/patch-ag
parent5a3238bb44582c2b3dfa70c1ae9a5d075818b7fc (diff)
downloadpkgsrc-6cd87e3403d5e4f05bfc1cee7174e3082d5ead36.tar.gz
Initial import of FreeBSD's "xview-lib" port:
OpenLook Toolkit libs, includes, and man pages.
Diffstat (limited to 'x11/xview-lib/patches/patch-ag')
-rw-r--r--x11/xview-lib/patches/patch-ag14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-ag b/x11/xview-lib/patches/patch-ag
new file mode 100644
index 00000000000..0c5469e10ef
--- /dev/null
+++ b/x11/xview-lib/patches/patch-ag
@@ -0,0 +1,14 @@
+--- ../alt/lib/libxview/notify/ndisdispch.c Tue Jun 29 07:18:06 1993
++++ lib/libxview/notify/ndisdispch.c Sat Jul 26 00:55:47 1997
+@@ -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;