3 Downloaded from http://patchwork.openembedded.org/patch/112685/
5 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8 From d811875a41b4628040abaada3da29b7b9592e757 Mon Sep 17 00:00:00 2001
9 From: Khem Raj <raj.khem@gmail.com>
10 Date: Sat, 9 Jan 2016 17:16:16 -0800
11 Subject: [PATCH] vmcore-dmesg: Define _GNU_SOURCE
13 loff_t is guarded with _GNU_SOURCE on some C library implementations
14 e.g. musl since this type is not defined by POSIX. Define _GNU_SOURCE to
15 include this define, it should help compiling on musl while nothing
16 changes for glibc based systems since there _GNU_SOURCE is already
19 Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 Upstream-Status: Submitted
23 vmcore-dmesg/vmcore-dmesg.c | 1 +
24 1 file changed, 1 insertion(+)
26 diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
27 index 0364636..a8f56df 100644
28 --- a/vmcore-dmesg/vmcore-dmesg.c
29 +++ b/vmcore-dmesg/vmcore-dmesg.c
31 #define _XOPEN_SOURCE 600
33 #define _LARGEFILE_SOURCE 1
34 #define _FILE_OFFSET_BITS 64