summaryrefslogtreecommitdiffstats
path: root/package/kexec/kexec-largefile.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-04-22 20:54:19 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-04-22 20:54:19 +0200
commit56bf500c8b0163510e156fbe2ce5e954176481bb (patch)
tree4ddaefd9c53f94734e2a8914e5f7bbdfc807be47 /package/kexec/kexec-largefile.patch
parent19a19a39971d8c0a436693bf056a84957da3d449 (diff)
downloadbuildroot-novena-56bf500c8b0163510e156fbe2ce5e954176481bb.tar.gz
buildroot-novena-56bf500c8b0163510e156fbe2ce5e954176481bb.zip
kexec: fix build without largefile support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/kexec/kexec-largefile.patch')
-rw-r--r--package/kexec/kexec-largefile.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kexec/kexec-largefile.patch b/package/kexec/kexec-largefile.patch
new file mode 100644
index 000000000..74dd8e2cd
--- /dev/null
+++ b/package/kexec/kexec-largefile.patch
@@ -0,0 +1,22 @@
+[PATCH] vmcore-dmesg: don't enforce largefile handling
+
+Breaks build on !largefile toolchains.
+
+Instead simply use whatever mode is selected by toolchain / CFLAGS.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ vmcore-dmesg/vmcore-dmesg.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+Index: kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
+===================================================================
+--- kexec-tools-2.0.3.orig/vmcore-dmesg/vmcore-dmesg.c
++++ kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
+@@ -1,6 +1,4 @@
+ #define _XOPEN_SOURCE 600
+-#define _LARGEFILE_SOURCE 1
+-#define _FILE_OFFSET_BITS 64
+ #include <endian.h>
+ #include <byteswap.h>
+ #include <stdio.h>