aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2012-06-28 22:43:40 +0000
committerUlrich Müller <ulm@gentoo.org>2012-06-28 22:43:40 +0000
commit633afc2e34a3c0001e63b4bf6e262eaca46055ab (patch)
tree61a1fbfcf713647d3c2e3f58e23e65d82cd8d2fe
parentFix compilation with ABI=x32, bug 420257 (diff)
downloademacs-patches-633afc2e34a3c0001e63b4bf6e262eaca46055ab.tar.gz
emacs-patches-633afc2e34a3c0001e63b4bf6e262eaca46055ab.tar.bz2
emacs-patches-633afc2e34a3c0001e63b4bf6e262eaca46055ab.zip
Support x32 ABI on x86_64.emacs-18.59-patches-8
-rw-r--r--emacs/18.59/10_all_x32.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/emacs/18.59/10_all_x32.patch b/emacs/18.59/10_all_x32.patch
new file mode 100644
index 0000000..68062ef
--- /dev/null
+++ b/emacs/18.59/10_all_x32.patch
@@ -0,0 +1,36 @@
+Support x32 ABI on x86_64.
+
+--- emacs-18.59-orig/etc/fakemail.c
++++ emacs-18.59/etc/fakemail.c
+@@ -272,7 +272,7 @@
+ make_file_preface ()
+ {
+ char *the_string, *temp;
+- long idiotic_interface;
++ time_t idiotic_interface;
+ long prefix_length;
+ long user_length;
+ long date_length;
+--- emacs-18.59-orig/etc/wakeup.c
++++ emacs-18.59/etc/wakeup.c
+@@ -11,7 +11,7 @@
+ char **argv;
+ {
+ int period = 60;
+- long when;
++ time_t when;
+ struct tm *tp;
+
+ if (argc > 1)
+--- emacs-18.59-orig/src/m-x86-x32.h
++++ emacs-18.59/src/m-x86-x32.h
+@@ -0,0 +1,9 @@
++/* m- file for x32 ABI on x86_64. */
++
++#include "m-intel386.h"
++
++#define NO_ARG_ARRAY
++
++#undef ULIMIT_BREAK_VALUE
++#undef DATA_SEG_BITS
++#undef SEGMENT_MASK