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