1 diff -Naur qemu-kvm-0.15.0.org/hw/9pfs/virtio-9p-local.c qemu-kvm-0.15.0/hw/9pfs/virtio-9p-local.c
2 --- qemu-kvm-0.15.0.org/hw/9pfs/virtio-9p-local.c 2011-08-09 14:40:29.000000000 +0200
3 +++ qemu-kvm-0.15.0/hw/9pfs/virtio-9p-local.c 2011-08-14 10:31:22.711480316 +0200
6 #include <attr/xattr.h>
9 +/* Copied from linux/include/linux/fcntl.h * because direct include fails */
10 +#define AT_FDCWD -100 /* Special value used to indicate
11 + openat should use the current
12 + working directory. */
13 +#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
14 +#define AT_REMOVEDIR 0x200 /* Remove directory instead of
16 +#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
19 static int local_lstat(FsContext *fs_ctx, const char *path, struct stat *stbuf)
21 diff -Naur qemu-kvm-0.15.0.org/linux-user/syscall.c qemu-kvm-0.15.0/linux-user/syscall.c
22 --- qemu-kvm-0.15.0.org/linux-user/syscall.c 2011-08-09 14:40:29.000000000 +0200
23 +++ qemu-kvm-0.15.0/linux-user/syscall.c 2011-08-14 12:43:43.190231600 +0200
28 +/* Copied from linux/include/asm/resource.h * because direct include fails */
31 +#define RLIMIT_NICE 13 /* max nice prio allowed to raise to
32 + 0-39 for nice level 19 .. -20 */
34 +#ifndef RLIMIT_RTPRIO
35 +#define RLIMIT_RTPRIO 14 /* maximum realtime priority */
38 static inline int target_to_host_resource(int code)