summaryrefslogtreecommitdiff
path: root/package/at/at-crosscompile.patch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-15 06:50:34 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-15 06:50:34 +0000
commit0c21223712d9d477731d2d78a36ea2fc7e1746e4 (patch)
tree64f2e05cc499ab5551a7cfa94ff6793d10e5b634 /package/at/at-crosscompile.patch
parent0b940a8ed1ab3313610ff8b6eb8288b852060fc5 (diff)
import at package by akvadrako #506
Diffstat (limited to 'package/at/at-crosscompile.patch')
-rw-r--r--package/at/at-crosscompile.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/package/at/at-crosscompile.patch b/package/at/at-crosscompile.patch
new file mode 100644
index 000000000..c04c35919
--- /dev/null
+++ b/package/at/at-crosscompile.patch
@@ -0,0 +1,58 @@
+--- at/config.h.in
++++ at/config.h.in
+@@ -182,3 +182,6 @@
+
+ #undef HAVE_ATTRIBUTE_NORETURN
+ #undef HAVE_PAM
++
++#undef NEED_YYWRAP
++
+--- at/configure
++++ at/configure
+@@ -1037,7 +1037,7 @@
+ echo $ac_n "checking Trying to compile a trivial ANSI C program""... $ac_c" 1>&6
+ echo "configure:1039: checking Trying to compile a trivial ANSI C program" >&5
+ if test "$cross_compiling" = yes; then
+- { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
++ echo "$ac_t""assuming it works" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+ #line 1044 "configure"
+--- at/getloadavg.c
++++ at/getloadavg.c
+@@ -66,11 +66,12 @@
+
+ /* This should always be first. */
+ #ifdef HAVE_CONFIG_H
+-#include <config.h>
++#include "config.h"
+ #endif
+
+-#include "lisp.h"
+-#include "sysfile.h" /* for encapsulated open, close, read, write */
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <fcntl.h>
+
+ #ifndef HAVE_GETLOADAVG
+
+--- at/Makefile.in
++++ at/Makefile.in
+@@ -62,6 +62,8 @@
+ DIST = $(CSRCS) $(HEADERS) $(MISC) $(OTHERS)
+ LIST = Filelist Filelist.asc
+
++IROOT = $(DESTDIR)
++
+ .PHONY: all install clean dist distclean
+
+ all: at atd atrun
+--- at/parsetime.l
++++ at/parsetime.l
+@@ -1,5 +1,6 @@
+ %{
+
++#include "config.h"
+ #include <string.h>
+ #include <time.h>
+ #include "y.tab.h"