From 364ec6e0e0e651cbc5e6192d23e48ba86a5547a0 Mon Sep 17 00:00:00 2001 From: Gilles Mazoyer Date: Fri, 18 Nov 2016 13:22:27 +0100 Subject: [PATCH] kexec-tools: fix compile error When compiling file vmcore-dmesg.c, several errors "unknown type name 'loff_t'" Signed-off-by: Gilles Mazoyer --- .../110-fix-vmcore-dmsg-compilation-error.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/boot/kexec-tools/patches/110-fix-vmcore-dmsg-compilation-error.patch diff --git a/package/boot/kexec-tools/patches/110-fix-vmcore-dmsg-compilation-error.patch b/package/boot/kexec-tools/patches/110-fix-vmcore-dmsg-compilation-error.patch new file mode 100644 index 0000000000..0cf2d3ebb5 --- /dev/null +++ b/package/boot/kexec-tools/patches/110-fix-vmcore-dmsg-compilation-error.patch @@ -0,0 +1,11 @@ +--- a/vmcore-dmesg/vmcore-dmesg.c ++++ b/vmcore-dmesg/vmcore-dmesg.c +@@ -1,6 +1,8 @@ + #define _XOPEN_SOURCE 600 + #define _LARGEFILE_SOURCE 1 + #define _FILE_OFFSET_BITS 64 ++#define _GNU_SOURCE ++ + #include + #include + #include -- 2.30.2