summaryrefslogtreecommitdiff
path: root/fsdev
diff options
context:
space:
mode:
authorKitae Kim <kt920.kim@samsung.com>2013-10-29 17:14:12 +0900
committerSooyoung Ha <yoosah.ha@samsung.com>2014-04-29 14:52:07 +0900
commit7af1bd9860eadf6443f4eeb71cd9f0deafefceae (patch)
treef7719d8a86287195d3cf89e0792019fb7d397a70 /fsdev
parent763c6b9059c2b2f786e9a2e5ab0a46acf72aa037 (diff)
downloadqemu-7af1bd9860eadf6443f4eeb71cd9f0deafefceae.tar.gz
qemu-7af1bd9860eadf6443f4eeb71cd9f0deafefceae.tar.bz2
qemu-7af1bd9860eadf6443f4eeb71cd9f0deafefceae.zip
virtio-9p: enable virtfs on Mac OS X.
Support virtio-9p local operation on Mac OS X to provide host directory sharing. Change-Id: Ic034673c6d3d4102ebe4fbaea7e186fffec34a2f Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/file-op-9p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h
index 956fda0919..75ad11f91a 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -19,6 +19,13 @@
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/vfs.h>
+#ifdef CONFIG_LINUX
+#include <sys/vfs.h>
+#endif
+#ifdef CONFIG_DARWIN
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
#define SM_LOCAL_MODE_BITS 0600
#define SM_LOCAL_DIR_MODE_BITS 0700