diff --git a/aterm/autoconf/configure.in b/aterm/autoconf/configure.in index a798111..5290532 100644 --- a/aterm/autoconf/configure.in +++ b/aterm/autoconf/configure.in @@ -418,6 +418,7 @@ AC_CHECK_HEADERS( \ sys/ioctl.h \ sys/select.h \ sys/sockio.h \ + sys/stropts.h \ sys/time.h \ ) diff --git a/aterm/src/command.c b/aterm/src/command.c index 70b3cbe..cc9b3a7 100644 --- a/aterm/src/command.c +++ b/aterm/src/command.c @@ -97,7 +97,9 @@ static const char rcsid[] = "$Id: command.c,v 1.24 2006/06/26 18:01:20 sasha Exp #if defined (__svr4__) || defined (__lnx21__) # include /* for struct rlimit */ -# include /* for I_PUSH */ +# ifdef HAVE_SYS_STROPTS_H +# include /* for I_PUSH */ +# endif # define _NEW_TTY_CTRL /* to get proper defines in */ #endif @@ -683,6 +685,7 @@ get_tty(void) exit(EXIT_FAILURE); } #if defined (__svr4__) || defined (__lnx21__) +# ifdef HAVE_SYS_STROPTS_H /* * Push STREAMS modules: * ptem: pseudo-terminal hardware emulation module. @@ -692,6 +695,7 @@ get_tty(void) ioctl(fd, I_PUSH, "ptem"); ioctl(fd, I_PUSH, "ldterm"); ioctl(fd, I_PUSH, "ttcompat"); +# endif #else /* __svr4__ */ { /* change ownership of tty to real uid and real group */