mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-12 05:52:19 -04:00
27 lines
657 B
C
27 lines
657 B
C
$NetBSD: patch-openbsd-compat_bsd-openpty.c,v 1.3 2016/01/18 12:53:26 jperkin Exp $
|
|
|
|
Interix support
|
|
|
|
--- openbsd-compat/bsd-openpty.c.orig 2015-08-21 04:49:03.000000000 +0000
|
|
+++ openbsd-compat/bsd-openpty.c
|
|
@@ -121,15 +121,17 @@ openpty(int *amaster, int *aslave, char
|
|
return (-1);
|
|
}
|
|
|
|
+#if !defined(HAVE_INTERIX)
|
|
/*
|
|
* Try to push the appropriate streams modules, as described
|
|
* in Solaris pts(7).
|
|
*/
|
|
ioctl(*aslave, I_PUSH, "ptem");
|
|
ioctl(*aslave, I_PUSH, "ldterm");
|
|
-# ifndef __hpux
|
|
+ # ifndef __hpux
|
|
ioctl(*aslave, I_PUSH, "ttcompat");
|
|
-# endif /* __hpux */
|
|
+ # endif /* __hpux */
|
|
+#endif /* !HAVE_INTERIX */
|
|
|
|
return (0);
|
|
|