1From a2679731a56748de58a4cf0a46b7a15d75543a88 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Sun, 29 Apr 2018 00:52:31 +0200
4Subject: [PATCH] vmcore-dmesg: fix warning
5
6 # define __bitwise
7
8Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
9
10---
11 vmcore-dmesg/vmcore-dmesg.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
15index c63ac4f..a4e3014 100644
16--- a/vmcore-dmesg/vmcore-dmesg.c
17+++ b/vmcore-dmesg/vmcore-dmesg.c
18@@ -2,6 +2,9 @@
19 #define _GNU_SOURCE
20 #define _LARGEFILE_SOURCE 1
21 #define _FILE_OFFSET_BITS 64
22+#ifdef __KLIBC__
23+#include <sys/types.h>
24+#endif
25 #include <endian.h>
26 #include <byteswap.h>
27 #include <stdio.h>
28