pkgsrc/devel/tet3/patches/patch-ad
rillig ae4eaf6ed5 Updated tet3 to 3.7.
I don't know what changed since the doc/ directory in the tarball is
empty and there is neither a README nor a NEWS file.
2006-06-08 16:57:59 +00:00

15 lines
510 B
Text

$NetBSD: patch-ad,v 1.2 2006/06/08 16:57:59 rillig Exp $
Matt Thomas's patch
--- src/tet3/dtet2lib/notty.c 1999-09-04 15:47:17.000000000 +0100
+++ src/tet3/dtet2lib/notty.c 2003-05-27 23:55:51.000000000 +0100
@@ -97,7 +97,7 @@
** this for BSD systems where setpgrp() does not change the
** control terminal
*/
- if ((ttyfd = open("/dev/tty", O_RDONLY | O_NDELAY)) >= 0) {
+ if ((ttyfd = open("/dev/tty", O_RDONLY | O_NONBLOCK)) >= 0) {
(void) ioctl(ttyfd, TIOCNOTTY, 0);
(void) close(ttyfd);
}