]> git.pld-linux.org Git - packages/busybox.git/blame - busybox-amd64.patch
- missing include (needed on big-endians)
[packages/busybox.git] / busybox-amd64.patch
CommitLineData
8dc5d77b
AM
1diff -urN busybox-1.00-pre4.org/modutils/insmod.c busybox-1.00-pre4/modutils/insmod.c
2--- busybox-1.00-pre4.org/modutils/insmod.c 2003-12-21 16:16:18.698827120 +0100
3+++ busybox-1.00-pre4/modutils/insmod.c 2003-12-21 16:25:03.315073328 +0100
4@@ -248,6 +248,15 @@
5 #define ELFCLASSM ELFCLASS32
6 #endif
7
8+#if defined(__amd64__)
9+#define ELFCLASSM ELFCLASS64
10+#define ELFDATAM ELFDATA2LSB
11+
12+#define MATCH_MACHINE(x) (x == EM_X86_64)
13+#define SHT_RELM SHT_RELA
14+#define Elf64_RelM Elf64_Rela
15+#endif
16+
17 #ifndef SHT_RELM
18 #error Sorry, but insmod.c does not yet support this architecture...
19 #endif
39175f30
JK
20diff -durN -x '*~' -x '*.o' -x '.*' -x '*.[0-9]' -x '*.links' -x '*.html' -x '*.txt' -x '*.pod' -x 'config*' busybox-1.00-pre4.orig/util-linux/fdisk.c busybox-1.00-pre4/util-linux/fdisk.c
21--- busybox-1.00-pre4.orig/util-linux/fdisk.c 2003-12-04 08:07:14.000000000 +0100
22+++ busybox-1.00-pre4/util-linux/fdisk.c 2004-12-21 17:45:00.000000000 +0100
23@@ -856,13 +856,13 @@
24 */
25
26
27-#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__)
28+#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__) || defined(__x86_64__)
29
30 #define my_llseek lseek
31
32 #else
33
34-#include <syscall.h>
35+#include <syscall.h>
36
37 static fdisk_loff_t my_llseek (unsigned int f_d, fdisk_loff_t offset,
38 unsigned int origin)
This page took 0.103 seconds and 4 git commands to generate.