[Type] Fix AT_EMPTY_PATH undefined issue on Ubuntu 12.04
authorJun Tian <jun.j.tian@intel.com>
Thu, 14 Jun 2012 03:16:06 +0000 (11:16 +0800)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 20 Jul 2012 11:47:05 +0000 (20:47 +0900)
    [Module] Emulator
    [Priority]
    [Jira#]
    [Redmine#]
    [Problem]
    [Cause]
    [Solution] It's bug on Ubuntu 12.04, this patch is picked from Ubuntu qemu
    [TestCase]

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

index 82a8d02ce9610d10f8cfecf2ff29aac2535e22ff..aa5601d35ae66e8235a10a0d073e5630000778ce 100644 (file)
@@ -58,6 +58,16 @@ struct handle_data {
     int handle_bytes;
 };
 
+#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
+
 static inline int name_to_handle(int dirfd, const char *name,
                                  struct file_handle *fh, int *mnt_id, int flags)
 {