1 diff -Nur zssh_1.5c.debian.1-3/configure.in zssh_1.5c.debian.1-3.new/configure.in
2 --- zssh_1.5c.debian.1-3/configure.in 2007-09-25 01:28:53.000000000 -0700
3 +++ zssh_1.5c.debian.1-3.new/configure.in 2007-09-25 01:30:03.000000000 -0700
7 AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h termios.h unistd.h \
8 - err.h sys/cdefs.h sys/param.h util.h stropts.h)
9 + err.h sys/cdefs.h sys/param.h util.h stropts.h pty.h)
16 dnl Check what is available for tty/pty allocation
17 -AC_CHECK_FUNCS(_getpty getpseudotty openpty grantpt unlockpt)
18 +AC_CHECK_FUNCS(_getpty getpseudotty grantpt unlockpt)
19 +AC_CHECK_FUNCS(openpty,,
20 + [AC_CHECK_LIB(util,openpty,
21 + [AC_DEFINE(HAVE_OPENPTY)
22 + LIBS="$LIBS -lutil"]
26 AC_MSG_CHECKING(for pseudo ttys)
27 if test -c /dev/getpty && test $ac_cv_func_getpseudotty = yes
29 diff -Nur zssh_1.5c.debian.1-3/openpty.c zssh_1.5c.debian.1-3.new/openpty.c
30 --- zssh_1.5c.debian.1-3/openpty.c 2007-09-25 01:28:53.000000000 -0700
31 +++ zssh_1.5c.debian.1-3.new/openpty.c 2007-09-25 01:30:03.000000000 -0700