From 56bf500c8b0163510e156fbe2ce5e954176481bb Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 22 Apr 2012 20:54:19 +0200 Subject: [PATCH] kexec: fix build without largefile support Signed-off-by: Peter Korsgaard --- package/kexec/kexec-largefile.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/kexec/kexec-largefile.patch diff --git a/package/kexec/kexec-largefile.patch b/package/kexec/kexec-largefile.patch new file mode 100644 index 0000000000..74dd8e2cdc --- /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 +--- + 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 + #include + #include -- 2.30.2