patch applied upstream
[buildroot.git] / package / at / at-crosscompile.patch
blob8b68da7128fd2169e9ed5300f4de69cbefb68009
1 diff -rdup at-3.1.10.orig/Makefile.in at-3.1.10/Makefile.in
2 --- at-3.1.10.orig/Makefile.in 2007-01-22 14:35:41.000000000 +0100
3 +++ at-3.1.10/Makefile.in 2007-01-22 14:41:41.000000000 +0100
4 @@ -62,6 +62,8 @@ MISC = COPYING Makefile.in configure a
5 DIST = $(CSRCS) $(HEADERS) $(MISC) $(OTHERS)
6 LIST = Filelist Filelist.asc
8 +IROOT = $(DESTDIR)
10 .PHONY: all install clean dist distclean
12 all: at atd atrun
13 @@ -78,7 +80,7 @@ atd: $(RUNOBJECTS)
14 y.tab.c y.tab.h: parsetime.y
15 $(YACC) -d parsetime.y
17 -lex.yy.c: parsetime.l
18 +lex.yy.c: parsetime.l y.tab.h
19 $(LEX) -i parsetime.l
21 atrun: atrun.in
22 diff -rdup at-3.1.10.orig/config.h.in at-3.1.10/config.h.in
23 --- at-3.1.10.orig/config.h.in 2007-01-22 14:35:41.000000000 +0100
24 +++ at-3.1.10/config.h.in 2007-01-22 14:35:35.000000000 +0100
25 @@ -181,3 +181,6 @@
27 #undef HAVE_ATTRIBUTE_NORETURN
28 #undef HAVE_PAM
30 +#undef NEED_YYWRAP
32 diff -rdup at-3.1.10.orig/configure at-3.1.10/configure
33 --- at-3.1.10.orig/configure 2007-01-22 14:35:41.000000000 +0100
34 +++ at-3.1.10/configure 2007-01-22 14:35:35.000000000 +0100
35 @@ -1037,7 +1037,7 @@ esac
36 echo $ac_n "checking Trying to compile a trivial ANSI C program""... $ac_c" 1>&6
37 echo "configure:1039: checking Trying to compile a trivial ANSI C program" >&5
38 if test "$cross_compiling" = yes; then
39 - { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
40 + echo "$ac_t""assuming it works" 1>&6
41 else
42 cat > conftest.$ac_ext <<EOF
43 #line 1044 "configure"
44 diff -rdup at-3.1.10.orig/getloadavg.c at-3.1.10/getloadavg.c
45 --- at-3.1.10.orig/getloadavg.c 2007-01-22 14:35:41.000000000 +0100
46 +++ at-3.1.10/getloadavg.c 2007-01-22 14:35:35.000000000 +0100
47 @@ -66,11 +66,12 @@ Boston, MA 02110-1301 USA */
49 /* This should always be first. */
50 #ifdef HAVE_CONFIG_H
51 -#include <config.h>
52 +#include "config.h"
53 #endif
55 -#include "lisp.h"
56 -#include "sysfile.h" /* for encapsulated open, close, read, write */
57 +#include <sys/types.h>
58 +#include <sys/stat.h>
59 +#include <fcntl.h>
61 #ifndef HAVE_GETLOADAVG
63 diff -rdup at-3.1.10.orig/parsetime.h at-3.1.10/parsetime.h
64 --- at-3.1.10.orig/parsetime.h 2005-08-05 05:16:01.000000000 +0200
65 +++ at-3.1.10/parsetime.h 2007-01-22 14:45:41.000000000 +0100
66 @@ -17,6 +17,7 @@
67 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
70 +#include "panic.h"
71 time_t parsetime(int argc, char **argv);
73 extern char *last_token;
74 diff -rdup at-3.1.10.orig/parsetime.l at-3.1.10/parsetime.l
75 --- at-3.1.10.orig/parsetime.l 2007-01-22 14:35:41.000000000 +0100
76 +++ at-3.1.10/parsetime.l 2007-01-22 14:35:35.000000000 +0100
77 @@ -1,5 +1,6 @@
80 +#include "config.h"
81 #include <string.h>
82 #include <time.h>
83 #include "y.tab.h"