Received: from eggs.gnu.org ([140.186.70.92]:52966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRRPu-0004r5-JW for qemu-devel@nongnu.org; Fri, 18 Nov 2011 11:35:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRRPt-0002ar-Bp for qemu-devel@nongnu.org; Fri, 18 Nov 2011 11:35:54 -0500 Received: from mail-vx0-f173.google.com ([209.85.220.173]:59398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRRPt-0002al-98 for qemu-devel@nongnu.org; Fri, 18 Nov 2011 11:35:53 -0500 Received: by vcbfk26 with SMTP id fk26so2474944vcb.4 for ; Fri, 18 Nov 2011 08:35:52 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 18 Nov 2011 17:35:37 +0100 Message-Id: <1321634138-24687-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1321634138-24687-1-git-send-email-pbonzini@redhat.com> References: <1321634138-24687-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 1.0 1/2] 9p: allow compiling the dummy virtio-9p-handle.c code on Linux List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: erik.rull@rdsoftware.de Avoid a conflict on the definition of struct file_handle by using a replacement name. Signed-off-by: Paolo Bonzini --- hw/9pfs/virtio-9p-handle.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index 0a778b4..27889d8 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -58,11 +58,12 @@ static inline int open_by_handle(int mountfd, const char *fh, int flags) } #else -struct file_handle { +struct rpl_file_handle { unsigned int handle_bytes; int handle_type; unsigned char handle[0]; }; +#define file_handle rpl_file_handle #ifndef AT_EMPTY_PATH #define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */ -- 1.7.7.1