From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVO23-0004T2-B5 for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:33:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVO1w-0005gd-CY for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:33:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVO1w-0005fc-5o for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:33:20 -0400 Date: Tue, 10 Mar 2015 18:33:16 +0100 From: "Michael S. Tsirkin" Message-ID: <20150310183316-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] 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 , Paolo Bonzini , =?us-ascii?B?PT9VVEYtOD9xP0FuZHJlYXM9MjBGPUMzPUE0cmJlcj89?= , Alexander Graf 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 --- Already on my tree as Marcel's patches needed this. 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