blob: 90c2f6e0ec51ba6f2e1d3bff30c8209c7387e7e7 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From d811875a41b4628040abaada3da29b7b9592e757 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 9 Jan 2016 17:16:16 -0800
4Subject: [PATCH] vmcore-dmesg: Define _GNU_SOURCE
5
6loff_t is guarded with _GNU_SOURCE on some C library implementations
7e.g. musl since this type is not defined by POSIX. Define _GNU_SOURCE to
8include this define, it should help compiling on musl while nothing
9changes for glibc based systems since there _GNU_SOURCE is already
10defined
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14Upstream-Status: Submitted
15
16 vmcore-dmesg/vmcore-dmesg.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
20index 0364636..a8f56df 100644
21--- a/vmcore-dmesg/vmcore-dmesg.c
22+++ b/vmcore-dmesg/vmcore-dmesg.c
23@@ -1,4 +1,5 @@
24 #define _XOPEN_SOURCE 600
25+#define _GNU_SOURCE
26 #define _LARGEFILE_SOURCE 1
27 #define _FILE_OFFSET_BITS 64
28 #include <endian.h>
29--
302.7.0
31