aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorGilles Mazoyer <mazoyer@gmazoyer-debian.ksl.fr>2016-11-18 13:22:27 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-20 16:24:21 +0100
commit364ec6e0e0e651cbc5e6192d23e48ba86a5547a0 (patch)
tree6e7d1752ab38dba5c191f23baa546bdbc6353145 /package
parent81a2f9d6f8612e5f0f440a9690a711d1c2d3fbc5 (diff)
downloadupstream-364ec6e0e0e651cbc5e6192d23e48ba86a5547a0.tar.gz
upstream-364ec6e0e0e651cbc5e6192d23e48ba86a5547a0.tar.bz2
upstream-364ec6e0e0e651cbc5e6192d23e48ba86a5547a0.zip
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>
Diffstat (limited to 'package')
-rw-r--r--package/boot/kexec-tools/patches/110-fix-vmcore-dmsg-compilation-error.patch11
1 files changed, 11 insertions, 0 deletions
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>