blob: 9b8107aedc8702043b342f772f57c7c6a951e8c8 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From a2679731a56748de58a4cf0a46b7a15d75543a88 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Andrea Adami <andrea.adami@gmail.com>
3Date: Sun, 29 Apr 2018 00:52:31 +0200
Brad Bishop26bdd442019-08-16 17:08:17 -04004Subject: [PATCH] vmcore-dmesg: fix warning
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6 # define __bitwise
7
8Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Brad Bishop26bdd442019-08-16 17:08:17 -04009
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010---
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
Brad Bishop26bdd442019-08-16 17:08:17 -040015index c63ac4f..a4e3014 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016--- 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>