summaryrefslogtreecommitdiff
path: root/user/qemu/sysinfo-header.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/qemu/sysinfo-header.patch')
-rw-r--r--user/qemu/sysinfo-header.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/qemu/sysinfo-header.patch b/user/qemu/sysinfo-header.patch
new file mode 100644
index 000000000..d6e81d39c
--- /dev/null
+++ b/user/qemu/sysinfo-header.patch
@@ -0,0 +1,13 @@
+<linux/netlink.h> pulls in <linux/sysinfo.h> which conflicts with the musl one.
+
+--- qemu-2.12.0/linux-user/syscall.c.old 2018-07-03 02:34:54.660000000 -0500
++++ qemu-2.12.0/linux-user/syscall.c 2018-07-03 03:43:28.580000000 -0500
+@@ -45,7 +45,7 @@
+ #include <sys/sem.h>
+ #include <sys/statfs.h>
+ #include <utime.h>
+-#include <sys/sysinfo.h>
++#include <linux/sysinfo.h>
+ #include <sys/signalfd.h>
+ //#include <sys/user.h>
+ #include <netinet/ip.h>