$NetBSD: patch-aa,v 1.5 2020/10/14 05:32:16 kamil Exp $

--- lib/util/pseudo.cpp.orig	2014-07-23 01:45:41.000000000 +0000
+++ lib/util/pseudo.cpp
@@ -325,6 +325,7 @@ int pty_open(int *masterfd, int *slavefd
 
 #ifndef HAVE_CYGWIN
 #ifndef HAVE_LINUX              /* linux does not use the streams module */
+#ifdef I_PUSH
     /*
      * Push the appropriate streams modules, as described in Solaris pts(7).
      * HP-UX pts(7) doesn't have ttcompat module.
@@ -349,6 +350,7 @@ int pty_open(int *masterfd, int *slavefd
 #endif
 #endif
 #endif
+#endif
 
 #else /* HAVE_DEV_PTMX */
 #ifdef HAVE_DEV_PTS_AND_PTC
