mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
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>
This commit is contained in:
parent
81a2f9d6f8
commit
364ec6e0e0
@ -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>
|
Loading…
Reference in New Issue
Block a user