[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] virtio-9p-handle: define AT_EMPTY_PATH if needed

From: Serge Hallyn
Subject: [Qemu-devel] [PATCH] virtio-9p-handle: define AT_EMPTY_PATH if needed
Date: Fri, 24 Feb 2012 13:51:43 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

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 <linux/fcntl.h> to pick
up the definitions there)

Signed-off-by: Serge Hallyn <address@hidden>
 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 @@
 #define BTRFS_SUPER_MAGIC 0x9123683E
+#define AT_REMOVEDIR    0x200
+#ifndef AT_EMPTY_PATH
+#define AT_EMPTY_PATH   0x1000  /* Allow empty relative pathname */
+#ifndef O_PATH
+#define O_PATH    010000000
 struct handle_data {
     int mountfd;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]