updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / zssh / 04_GNU_openpty.patch
blob707fcfac990b6cb8f0fa5022158367ffe3fb36dd
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
4 @@ -57,7 +57,7 @@
5 AC_HEADER_STDC
6 AC_HEADER_SYS_WAIT
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)
13 @@ -97,7 +97,14 @@
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"]
23 + )])
26 AC_MSG_CHECKING(for pseudo ttys)
27 if test -c /dev/getpty && test $ac_cv_func_getpseudotty = yes
28 then
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
32 @@ -25,6 +25,10 @@
33 #include <util.h>
34 #endif
36 +#ifdef HAVE_PTY_H
37 +#include <pty.h>
38 +#endif
40 void getmaster()
42 #ifdef DEBUG