]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/qemu-0.14.1_missing_ATFCWD_hack.patch
ethtool: Update to 3.16
[ipfire-2.x.git] / src / patches / qemu-0.14.1_missing_ATFCWD_hack.patch
CommitLineData
6f52b3df
AF
1diff -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
4@@ -10,6 +10,7 @@
5 * the COPYING file in the top-level directory.
6 *
7 */
8+
9 #include "virtio.h"
10 #include "virtio-9p.h"
11 #include "virtio-9p-xattr.h"
12@@ -20,6 +21,16 @@
13 #include <sys/un.h>
14 #include <attr/xattr.h>
15
16+#ifndef AT_FDCWD
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
23+ unlinking file. */
24+#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
25+#endif
26
27 static int local_lstat(FsContext *fs_ctx, const char *path, struct stat *stbuf)
28 {