diff options
author | tron <tron@pkgsrc.org> | 1998-07-03 21:02:03 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-07-03 21:02:03 +0000 |
commit | 6cd87e3403d5e4f05bfc1cee7174e3082d5ead36 (patch) | |
tree | da784db3f97debe40b7c19c6d6fadc7aa5cb8588 /x11/xview-lib/patches/patch-ag | |
parent | 5a3238bb44582c2b3dfa70c1ae9a5d075818b7fc (diff) | |
download | pkgsrc-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-ag | 14 |
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; |