]> git.proxmox.com Git - mirror_qemu.git/blobdiff - fsdev/file-op-9p.h
Don't include headers already included by qemu/osdep.h
[mirror_qemu.git] / fsdev / file-op-9p.h
index 42f677cf38c2d2002868a476e9870eafd79df839..4997677460e8c0d1d23bcbca80d94046a1a628fe 100644 (file)
 
 #include <dirent.h>
 #include <utime.h>
-#include <sys/vfs.h>
 #include "qemu-fsdev-throttle.h"
+#include "p9array.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
@@ -105,6 +113,7 @@ struct V9fsPath {
     uint16_t size;
     char *data;
 };
+P9ARRAY_DECLARE_TYPE(V9fsPath);
 
 typedef union V9fsFidOpenState V9fsFidOpenState;