diff --git a/dist/nvi/ex/ex_script.c b/dist/nvi/ex/ex_script.c index 12588da5e153..895e4781c8a8 100644 --- a/dist/nvi/ex/ex_script.c +++ b/dist/nvi/ex/ex_script.c @@ -1,4 +1,4 @@ -/* $NetBSD: ex_script.c,v 1.1.1.2 2008/05/18 14:31:17 aymeric Exp $ */ +/* $NetBSD: ex_script.c,v 1.2 2008/05/20 17:55:05 aymeric Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -25,7 +25,7 @@ static const char sccsid[] = "Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo #include #endif #include -#ifdef HAVE_SYS5_PTY +#if defined(HAVE_SYS5_PTY) && !defined(__NetBSD__) #include #endif #include @@ -752,6 +752,7 @@ ptys_open(int fdm, char *pts_name) return (-5); } +#ifdef I_PUSH if (ioctl(fds, I_PUSH, "ptem") < 0) { close(fds); close(fdm); @@ -769,6 +770,7 @@ ptys_open(int fdm, char *pts_name) close(fdm); return (-8); } +#endif /* I_PUSH */ return (fds); }