summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-08 22:41:14 +0000
committerSimon Horman <horms@verge.net.au>2017-03-13 11:22:38 +0100
commit2f6f6d6fef7872647cacc6741ac35ac2b4df7ed5 (patch)
treefe05e623427bb76c6c5fee4410d6dd8bc17ac425
parent896fb2aa30c6acf0c651ba80e4ef661517b4aac4 (diff)
vmcore-dmesg: Define _GNU_SOURCE
loff_t is guarded with _GNU_SOURCE on some C library implementations e.g. musl since this type is not defined by POSIX. Define _GNU_SOURCE to include this define, it should help compiling on musl while nothing changes for glibc based systems since there _GNU_SOURCE is already defined Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--vmcore-dmesg/vmcore-dmesg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
index 0364636..a8f56df 100644
--- a/vmcore-dmesg/vmcore-dmesg.c
+++ b/vmcore-dmesg/vmcore-dmesg.c
@@ -1,4 +1,5 @@
#define _XOPEN_SOURCE 600
+#define _GNU_SOURCE
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#include <endian.h>