From nobody Thu Nov 13 21:53:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1583423249; cv=none; d=zohomail.com; s=zohoarc; b=a/m9pScpy0QKfrt32OdiQRVL/sCXWJbif0ijRHUaZHNIaFVMvC7f1i76i5GiZmoRxoHcLJ0VVdix/NL5oIToBEh9OrROeuV3NRiAzpxxKZxKT8JjGa7EWwMgtxgDlhmEaP+SImfaaB2CssNmyaVibHntg7B6wAiUubPKRSDs2k8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583423249; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=iDJiOxD0Nb1M31ZNrn4oOjleFPG9uj84HJiWhM1ePN0=; b=JrP0zHynk5FndvL2w97xzQm41QFSM6bWdb5TF0qMxSmho23cAQ/p8Op/093qooLYEPEN++1h8bP2x2M77WR/iCzw80FH13GtGJKw1coRixBzx5R1I9P92htqa1+sBxDT/KuCnKDre17jItlRoh2jZLKnHfxAymkza93i+zMUFC8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583423249253158.3841933023598; Thu, 5 Mar 2020 07:47:29 -0800 (PST) Received: from localhost ([::1]:51404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9sid-0006Bj-Su for importer@patchew.org; Thu, 05 Mar 2020 10:47:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51041) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9shg-0005lp-Gq for qemu-devel@nongnu.org; Thu, 05 Mar 2020 10:46:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9she-0002HW-S8 for qemu-devel@nongnu.org; Thu, 05 Mar 2020 10:46:27 -0500 Received: from mga18.intel.com ([134.134.136.126]:36303) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9she-00024r-Ji for qemu-devel@nongnu.org; Thu, 05 Mar 2020 10:46:26 -0500 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2020 07:46:18 -0800 Received: from dazhang1-mobile.sh.intel.com ([10.239.48.70]) by orsmga006.jf.intel.com with ESMTP; 05 Mar 2020 07:46:17 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="244307759" From: Jingqi Liu To: mst@redhat.com, ehabkost@redhat.com Subject: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c Date: Thu, 5 Mar 2020 23:41:42 +0800 Message-Id: <20200305154142.63070-1-jingqi.liu@intel.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.126 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jingqi Liu , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 --- 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. */ =20 +#include "config-host.h" + #ifdef CONFIG_LINUX #include #else /* !CONFIG_LINUX */ --=20 2.17.1