screen: Update to version 4.2.1
[openwrt/svn-archive/archive.git] / utils / screen / patches / 100-cross_compile_fix.patch
1 --- a/configure
2 +++ b/configure
3 @@ -414,7 +414,7 @@ as_fn_error ()
4 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 fi
6 $as_echo "$as_me: error: $2" >&2
7 - as_fn_exit $as_status
8 + # as_fn_exit $as_status
9 } # as_fn_error
10
11 if expr a : '\(a\)' >/dev/null 2>&1 &&
12 @@ -5941,8 +5941,6 @@ else
13 fi
14 rm -f core conftest.err conftest.$ac_objext \
15 conftest$ac_exeext conftest.$ac_ext
16 -test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
17 -test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
18 oldlibs="$LIBS"
19 LIBS="$LIBS -lsun"
20 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIX sun library..." >&5
21 @@ -7023,7 +7021,7 @@ as_fn_error ()
22 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23 fi
24 $as_echo "$as_me: error: $2" >&2
25 - as_fn_exit $as_status
26 + # as_fn_exit $as_status
27 } # as_fn_error
28
29
30 --- a/pty.c
31 +++ b/pty.c
32 @@ -39,9 +39,9 @@
33 #endif
34
35 /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
36 -#ifdef HAVE_STROPTS_H
37 -# include <sys/stropts.h>
38 -#endif
39 +//#ifdef HAVE_STROPTS_H
40 +//# include <sys/stropts.h>
41 +//#endif
42
43 #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
44 # include <sys/ttold.h>
45 --- a/sched.h
46 +++ b/sched.h
47 @@ -27,6 +27,11 @@
48 * $Id$ GNU
49 */
50
51 +#ifndef __SCHED_H
52 +#define __SCHED_H
53 +
54 +#include <sys/time.h>
55 +
56 struct event
57 {
58 struct event *next;
59 @@ -46,3 +51,5 @@ struct event
60 #define EV_READ 1
61 #define EV_WRITE 2
62 #define EV_ALWAYS 3
63 +
64 +#endif