1 diff -Naur qemu-0.14.1.org/hw/virtio-9p-local.c qemu-0.14.1/hw/virtio-9p-local.c
2 --- qemu-0.14.1.org/hw/virtio-9p-local.c 2011-05-06 21:01:43.000000000 +0200
3 +++ qemu-0.14.1/hw/virtio-9p-local.c 2011-05-18 14:04:32.432444320 +0200
5 * the COPYING file in the top-level directory.
10 #include "virtio-9p.h"
11 #include "virtio-9p-xattr.h"
14 #include <attr/xattr.h>
17 +/* Copied from linux/include/linux/fcntl.h * because direct include fails */
18 +#define AT_FDCWD -100 /* Special value used to indicate
19 + openat should use the current
20 + working directory. */
21 +#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
22 +#define AT_REMOVEDIR 0x200 /* Remove directory instead of
24 +#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
27 static int local_lstat(FsContext *fs_ctx, const char *path, struct stat *stbuf)