Files
pkgsrc-ng/devel/tet3/patches/patch-ad
2016-11-18 22:39:22 +01:00

14 lines
486 B
Plaintext

$NetBSD: patch-ad,v 1.3 2016/03/15 12:15:26 wiz Exp $
--- 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);
}