virtio-9p-handle: define AT_EMPTY_PATH if needed
authorSerge Hallyn <serge.hallyn@canonical.com>
Fri, 24 Feb 2012 19:51:43 +0000 (13:51 -0600)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Fri, 15 Jun 2012 07:22:20 +0000 (11:22 +0400)
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 <serge.hallyn@canonical.com>
hw/9pfs/virtio-9p-handle.c

index f96d17a9749a6f672741ff4dcb98da81d1dcc3ce..e403a84462db6bcc2c8c8b927c9a21976231e501 100644 (file)
 #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;