[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] util: fix to get configuration macros in util/mmap-alloc.c
From: |
Jingqi Liu |
Subject: |
[PATCH] util: fix to get configuration macros in util/mmap-alloc.c |
Date: |
Thu, 5 Mar 2020 23:41:42 +0800 |
The CONFIG_LINUX symbol is always not defined in this file.
This fixes that "config-host.h" header file is not included
for getting macros.
Signed-off-by: Jingqi Liu <address@hidden>
---
util/mmap-alloc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c
index 27dcccd8ec..24c0e380f3 100644
--- a/util/mmap-alloc.c
+++ b/util/mmap-alloc.c
@@ -10,6 +10,8 @@
* later. See the COPYING file in the top-level directory.
*/
+#include "config-host.h"
+
#ifdef CONFIG_LINUX
#include <linux/mman.h>
#else /* !CONFIG_LINUX */
--
2.17.1
- [PATCH] util: fix to get configuration macros in util/mmap-alloc.c,
Jingqi Liu <=
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Ján Tomko, 2020/03/05
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Peter Maydell, 2020/03/05
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Liu, Jingqi, 2020/03/05
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Liu, Jingqi, 2020/03/09
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Peter Maydell, 2020/03/09
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Liu, Jingqi, 2020/03/10
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Michael S. Tsirkin, 2020/03/10
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Liu, Jingqi, 2020/03/10
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Peter Maydell, 2020/03/11
- Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c, Eduardo Habkost, 2020/03/11