]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/qemu-0.15.0_missing_definitions_hack.patch
core90: update kernel version in uEnv.txt
[people/pmueller/ipfire-2.x.git] / src / patches / qemu-0.15.0_missing_definitions_hack.patch
CommitLineData
1c6e776c
AF
1diff -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
4@@ -21,6 +21,16 @@
5 #include <sys/un.h>
6 #include <attr/xattr.h>
7
8+#ifndef AT_FDCWD
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
15+ unlinking file. */
16+#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
17+#endif
18
19 static int local_lstat(FsContext *fs_ctx, const char *path, struct stat *stbuf)
20 {
21diff -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
24@@ -971,6 +971,16 @@
25 return result;
26 }
27
28+/* Copied from linux/include/asm/resource.h * because direct include fails */
29+
30+#ifndef RLIMIT_NICE
31+#define RLIMIT_NICE 13 /* max nice prio allowed to raise to
32+ 0-39 for nice level 19 .. -20 */
33+#endif
34+#ifndef RLIMIT_RTPRIO
35+#define RLIMIT_RTPRIO 14 /* maximum realtime priority */
36+#endif
37+
38 static inline int target_to_host_resource(int code)
39 {
40 switch (code) {