qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] util: fix to get configuration macros in util/mmap-alloc.c
@ 2020-03-05 15:41 Jingqi Liu
  2020-03-05 16:10 ` Ján Tomko
  0 siblings, 1 reply; 12+ messages in thread
From: Jingqi Liu @ 2020-03-05 15:41 UTC (permalink / raw)
  To: mst, ehabkost; +Cc: Jingqi Liu, qemu-devel

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 <jingqi.liu@intel.com>
---
 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



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-03-11 20:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-05 15:41 [PATCH] util: fix to get configuration macros in util/mmap-alloc.c Jingqi Liu
2020-03-05 16:10 ` Ján Tomko
2020-03-05 16:40   ` Peter Maydell
2020-03-06  4:01     ` Liu, Jingqi
2020-03-09 13:23     ` Liu, Jingqi
2020-03-09 13:35       ` Peter Maydell
2020-03-10  8:58         ` Liu, Jingqi
2020-03-10  9:12           ` Michael S. Tsirkin
2020-03-11  0:43             ` Liu, Jingqi
2020-03-11 12:37               ` Peter Maydell
2020-03-11 20:42                 ` Eduardo Habkost
2020-03-06  2:48   ` Liu, Jingqi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).