another try to get sshpty.c compiling on bsd

This commit is contained in:
asvitkine 2012-06-17 23:15:10 +00:00
parent d3267154c8
commit d931e6ff78
2 changed files with 5 additions and 1 deletions

View File

@ -429,6 +429,7 @@ AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
])
AC_CHECK_HEADERS(AvailabilityMacros.h)
AC_CHECK_HEADERS(IOKit/storage/IOBlockStorageDevice.h)
AC_CHECK_HEADERS(sys/stropts.h stropts.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN

View File

@ -88,6 +88,9 @@ RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/19 07:18:56 deraadt Exp $");
#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H)
# include <sys/stropts.h>
#endif
#if defined(HAVE_DEV_PTMX) && defined(HAVE_STROPTS_H)
# include <stropts.h>
#endif
#ifndef O_NOCTTY
#define O_NOCTTY 0
@ -179,7 +182,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
close(*ptyfd);
return 0;
}
#if !defined(HAVE_CYGWIN) && !defined(__FreeBSD__)
#ifndef HAVE_CYGWIN
/*
* Push the appropriate streams modules, as described in Solaris pts(7).
* HP-UX pts(7) doesn't have ttcompat module.