From: Gilles Mazoyer <mazoyer@gmazoyer-debian.ksl.fr> Date: Fri, 18 Nov 2016 12:22:27 +0000 (+0100) Subject: kexec-tools: fix compile error X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=364ec6e0e0e651cbc5e6192d23e48ba86a5547a0;p=openwrt%2Fstaging%2Fldir.git kexec-tools: fix compile error When compiling file vmcore-dmesg.c, several errors "unknown type name 'loff_t'" Signed-off-by: Gilles Mazoyer <mazoyer.gilles@omega.ovh> --- 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 <endian.h> + #include <byteswap.h> + #include <stdio.h>