pkgsrc/x11/xview-lib/patches/patch-dw
abs c9c8f97e88 - Add PKG_DESTDIR_SUPPORT
- Depend on the latest version of xview-config
- Mark as LICENSE sun-openlook-license
- Bump pkgrevision
2009-12-10 20:35:56 +00:00

16 lines
638 B
Text

$NetBSD: patch-dw,v 1.2 2009/12/10 20:35:58 abs Exp $
--- lib/libxview/notify/ndisdispch.c.orig 1993-06-29 05:18:06.000000000 +0000
+++ lib/libxview/notify/ndisdispch.c
@@ -30,8 +30,9 @@ int dtablesize_cache = 0;
#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;