Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From a2679731a56748de58a4cf0a46b7a15d75543a88 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Andrea Adami <andrea.adami@gmail.com> |
| 3 | Date: Sun, 29 Apr 2018 00:52:31 +0200 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 4 | Subject: [PATCH] vmcore-dmesg: fix warning |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | # define __bitwise |
| 7 | |
| 8 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 9 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | --- |
| 11 | vmcore-dmesg/vmcore-dmesg.c | 3 +++ |
| 12 | 1 file changed, 3 insertions(+) |
| 13 | |
| 14 | diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 15 | index c63ac4f..a4e3014 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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> |