diff options
author | tron <tron@pkgsrc.org> | 2001-12-20 09:19:53 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-12-20 09:19:53 +0000 |
commit | 71146f333ee2015a1dc555b20853e181378164cc (patch) | |
tree | 4f262d25e837db12d2b8bd96b651b1c07c0cad61 /x11/xview-lib/patches/patch-dv | |
parent | 268024ad5e826b779fdedb01575611de8d642d89 (diff) | |
download | pkgsrc-71146f333ee2015a1dc555b20853e181378164cc.tar.gz |
Cleanup patch files:
- unified format
- only one patch per file
- no files gets patched twice
Diffstat (limited to 'x11/xview-lib/patches/patch-dv')
-rw-r--r-- | x11/xview-lib/patches/patch-dv | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-dv b/x11/xview-lib/patches/patch-dv new file mode 100644 index 00000000000..6ad06144492 --- /dev/null +++ b/x11/xview-lib/patches/patch-dv @@ -0,0 +1,16 @@ +$NetBSD: patch-dv,v 1.1 2001/12/20 09:20:08 tron Exp $ + +--- lib/libxview/notify/ndet_fd.c.orig Tue Jun 29 07:18:08 1993 ++++ lib/libxview/notify/ndet_fd.c Thu Dec 20 10:09:23 2001 +@@ -27,8 +27,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 + + static int ndet_fd_table_size; /* Number of descriptor slots |