lpeg: bump to version 1.0.1
[buildroot-gz.git] / package / kexec / 0001-vmcore-dmesg-Define-_GNU_SOURCE.patch
blobadaac2f6ec0aaa020dc35c86096678ad18eb38c4
1 Fix musl build
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
17 defined
19 Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 ---
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
30 @@ -1,4 +1,5 @@
31 #define _XOPEN_SOURCE 600
32 +#define _GNU_SOURCE
33 #define _LARGEFILE_SOURCE 1
34 #define _FILE_OFFSET_BITS 64
35 #include <endian.h>
36 --
37 2.7.0