From patchwork Fri Feb 24 19:51:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Hallyn X-Patchwork-Id: 142969 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D4FCFB6F98 for ; Sat, 25 Feb 2012 06:52:00 +1100 (EST) Received: from localhost ([::1]:54534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S11BN-0007lQ-Ga for incoming@patchwork.ozlabs.org; Fri, 24 Feb 2012 14:51:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S11BH-0007j6-Ur for qemu-devel@nongnu.org; Fri, 24 Feb 2012 14:51:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S11BG-0005yu-SZ for qemu-devel@nongnu.org; Fri, 24 Feb 2012 14:51:51 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:52398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S11BG-0005yo-NF for qemu-devel@nongnu.org; Fri, 24 Feb 2012 14:51:50 -0500 Received: from cpe-70-123-137-7.austin.res.rr.com ([70.123.137.7] helo=vostro.hallyn.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S11BD-0008RE-Uj; Fri, 24 Feb 2012 19:51:48 +0000 Date: Fri, 24 Feb 2012 13:51:43 -0600 From: Serge Hallyn To: qemu-devel@nongnu.org, aliguori@us.ibm.com Message-ID: <20120224195143.GA16353@vostro.hallyn.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 91.189.89.112 Subject: [Qemu-devel] [PATCH] virtio-9p-handle: define AT_EMPTY_PATH if needed X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org If AT_EMPTY_PATH is not in one of the included files, go ahead and define it. qemu won't compile on ubuntu for me without this. (Note - alternatively we could #include to pick up the definitions there) Signed-off-by: Serge Hallyn --- hw/9pfs/virtio-9p-handle.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index f96d17a..e403a84 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -39,6 +39,15 @@ #ifndef BTRFS_SUPER_MAGIC #define BTRFS_SUPER_MAGIC 0x9123683E #endif +#ifndef AT_REMOVEDIR +#define AT_REMOVEDIR 0x200 +#endif +#ifndef AT_EMPTY_PATH +#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */ +#endif +#ifndef O_PATH +#define O_PATH 010000000 +#endif struct handle_data { int mountfd;