summaryrefslogtreecommitdiff
path: root/packages/nonworking/lftp/files/pty.patch
blob: 166b665f3f95035b7b32d1fcd75726516f7577bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- lftp-2.6.11/m4/pty.m4~pty
+++ lftp-2.6.11/m4/pty.m4
@@ -4,14 +4,20 @@
 *-*-sco3.2v4*)	no_dev_ptmx=1;;
 *-*-sco3.2v5*)	no_dev_ptmx=1;;
 esac
+AC_SEARCH_LIBS(openpty,util,
+   [
+	AC_DEFINE(HAVE_OPENPTY,1,[define if you have openpty function])
+	no_dev_ptc=yes
+	no_dev_ptmx=yes
+   ])
+AC_CHECK_FUNCS([_getpty])
 if test -z "$no_dev_ptmx" ; then
    AC_CHECK_FILE("/dev/ptmx", [
       AC_DEFINE(HAVE_DEV_PTMX,1,[define if you have /dev/ptmx device])])
 fi
+if test -z "$no_dev_ptc" ; then
 AC_CHECK_FILE("/dev/ptc", [
    AC_DEFINE(HAVE_DEV_PTS_AND_PTC,1,[define if you have /dev/ptc device])])
+fi
 AC_CHECK_HEADERS([util.h sys/stropts.h pty.h])
-AC_SEARCH_LIBS(openpty,util,
-   [AC_DEFINE(HAVE_OPENPTY,1,[define if you have openpty function])])
-AC_CHECK_FUNCS([_getpty])
 ])