$NetBSD: patch-ad,v 1.1.1.1 2003/06/17 17:39:03 agc 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);
 	}
