From 273dafbc68bdc779d5841cb46864204396ae97a7 Mon Sep 17 00:00:00 2001 From: "syeon.hwang" Date: Thu, 12 Jul 2012 20:12:23 +0900 Subject: [PATCH] [Title] Fix build failure on some new ubuntu host [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- hw/9pfs/virtio-9p-handle.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index f97d8984bd..82a8d02ce9 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -27,6 +27,7 @@ #endif #include + #ifndef XFS_SUPER_MAGIC #define XFS_SUPER_MAGIC 0x58465342 #endif @@ -40,6 +41,18 @@ #define BTRFS_SUPER_MAGIC 0x9123683E #endif +#ifdef CONFIG_MARU // added by caramis +#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 +#endif + struct handle_data { int mountfd; int handle_bytes; -- 2.34.1