From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVmfB-0003Si-38 for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVmf4-0005DT-UA for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:51:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVmf4-0005DP-N2 for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:51:22 -0400 Date: Wed, 11 Mar 2015 20:51:16 +0100 From: "Michael S. Tsirkin" Message-ID: <20150311205116-mutt-send-email-mst@redhat.com> References: <1426096767-30494-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1426096767-30494-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 12/25] hw/boards: make it safe to include for linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Peter Maydell , =?us-ascii?B?PT9VVEYtOD9xP0FuZHJlYXM9MjBGPUMzPUE0cmJlcj89?= , Eduardo Habkost , Paolo Bonzini Make it safe to include hw/boards.h in exec.c for linux-user configurations. We don't need any of its contents though. Signed-off-by: Michael S. Tsirkin --- include/hw/boards.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hw/boards.h b/include/hw/boards.h index 1f21bdf..0bf00f7 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -3,6 +3,8 @@ #ifndef HW_BOARDS_H #define HW_BOARDS_H +#if !defined(CONFIG_USER_ONLY) + #include "qemu/typedefs.h" #include "sysemu/blockdev.h" #include "sysemu/accel.h" @@ -154,3 +156,5 @@ struct MachineState { }; #endif + +#endif -- MST