freebsd-ports/x11-toolkits/xview/files/patch-lib+libxview+notify+ndisdispch.c
Pav Lucistnik bbff923854 - Redo this port. Now it compiles on -current again.
PR:		ports/58176
Submitted by:	Pedro F. Giffuni <giffunip@yahoo.com>
2003-12-13 23:38:21 +00:00

14 lines
561 B
C

--- ../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;