[Title] Fix build failure on some new ubuntu host
authorsyeon.hwang <syeon.hwang@samsung.com>
Thu, 12 Jul 2012 11:12:23 +0000 (20:12 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Thu, 12 Jul 2012 11:12:23 +0000 (20:12 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

hw/9pfs/virtio-9p-handle.c

index f97d8984bde677eb67d5a13489a0821ead4ef7aa..82a8d02ce9610d10f8cfecf2ff29aac2535e22ff 100644 (file)
@@ -27,6 +27,7 @@
 #endif
 #include <sys/ioctl.h>
 
+
 #ifndef XFS_SUPER_MAGIC
 #define XFS_SUPER_MAGIC  0x58465342
 #endif
 #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;