depend on the existance of the define TIOCSTI to enable it, not SYSV
This commit is contained in:
parent
55fcbd4553
commit
b4fe85ba98
1 changed files with 21 additions and 0 deletions
21
net/icb/patches/patch-as
Normal file
21
net/icb/patches/patch-as
Normal file
|
@ -0,0 +1,21 @@
|
|||
$NetBSD: patch-as,v 1.1 1999/11/29 04:38:22 christos Exp $
|
||||
|
||||
--- unix.c.orig Sun Nov 28 23:33:27 1999
|
||||
+++ unix.c Sun Nov 28 23:35:51 1999
|
||||
@@ -92,13 +92,13 @@
|
||||
pushback(c)
|
||||
char c;
|
||||
{
|
||||
-#ifndef SYSV
|
||||
+#ifdef TIOCSTI
|
||||
if (ioctl(0, TIOCSTI, &c) < 0)
|
||||
perror("TIOCSTI ioctl failed");
|
||||
-#else /* SYSV */
|
||||
+#else /* !TIOCSTI */
|
||||
if (ungetc(c,stdin) == EOF)
|
||||
perror("ungetc() failed");
|
||||
-#endif /* SYSV */
|
||||
+#endif /* TIOCSTI */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue