. include <sys/stropts.h> only if !defined(__NetBSD__)
. use I_PUSH only if it is defined as a preprocessor macro because we don't have it
This commit is contained in:
parent
f8f1a54d4c
commit
a3887e9573
|
@ -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 <sys/select.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS5_PTY
|
||||
#if defined(HAVE_SYS5_PTY) && !defined(__NetBSD__)
|
||||
#include <sys/stropts.h>
|
||||
#endif
|
||||
#include <sys/time.h>
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue