summaryrefslogtreecommitdiff
path: root/x11/aterm/patches/patch-ae
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-25 21:19:46 +0000
committerjlam <jlam@pkgsrc.org>2002-08-25 21:19:46 +0000
commit8515688e4fc1e61508e192542688b3ff53ea4ca8 (patch)
treed2d4ad86fb660f5fc1d74e8ef4b3232c9aad1046 /x11/aterm/patches/patch-ae
parent3612c287b035cd52b87361b84833d892629cf955 (diff)
downloadpkgsrc-8515688e4fc1e61508e192542688b3ff53ea4ca8.tar.gz
Merge changes in the main trunk into the buildlink2 branch for thosebuildlink2
packages that have been converted to USE_BUILDLINK2.
Diffstat (limited to 'x11/aterm/patches/patch-ae')
-rw-r--r--x11/aterm/patches/patch-ae25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/aterm/patches/patch-ae b/x11/aterm/patches/patch-ae
new file mode 100644
index 00000000000..20192241526
--- /dev/null
+++ b/x11/aterm/patches/patch-ae
@@ -0,0 +1,25 @@
+$NetBSD: patch-ae,v 1.1.2.2 2002/08/25 21:22:48 jlam Exp $
+
+--- src/command.c.orig Thu Sep 6 18:38:07 2001
++++ src/command.c
+@@ -1146,6 +1146,11 @@
+ num_fds = getdtablesize();
+ #endif
+
++#if defined(__NetBSD__)
++ if (num_fds > FD_SETSIZE)
++ num_fds = FD_SETSIZE;
++#endif
++
+ #ifdef META8_OPTION
+ meta_char = (Options & Opt_meta8 ? 0x80 : 033);
+ if (rs_modifier
+@@ -2024,7 +2029,7 @@
+ #endif
+
+ /* See if we can read from the application */
+- if (FD_ISSET(cmd_fd, &readfds)) {
++ if (retval > 0 && FD_ISSET(cmd_fd, &readfds)) {
+ unsigned int count = BUFSIZ;
+
+ cmdbuf_ptr = cmdbuf_endp = cmdbuf_base;