summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-01-15 20:44:40 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-15 21:02:52 -0600
commit2a9ba8dedb0960c08a509d930df999f35ea72fa9 (patch)
treebe33fc55347ab7f02da173b63980612a2d5f69ee /package
parent4f7287635d0bcaa6f1a034b2763682ef1e33510e (diff)
readd patch required for native build on older systems
Diffstat (limited to 'package')
-rw-r--r--package/qemu/Makefile1
-rw-r--r--package/qemu/patches/patch-linux-user_syscall_c27
2 files changed, 28 insertions, 0 deletions
diff --git a/package/qemu/Makefile b/package/qemu/Makefile
index 393552a16..cb69fdaaa 100644
--- a/package/qemu/Makefile
+++ b/package/qemu/Makefile
@@ -63,6 +63,7 @@ CONFIGURE_ARGS+= --host-cc=$(HOST_CC) \
HOST_STYLE:= manual
HOST_CONFIGURE_ARGS+= --host-cc=$(HOST_CC) \
--prefix=${STAGING_HOST_DIR}/usr \
+ --audio-drv-list=alsa \
--disable-stack-protector \
--disable-pie \
--disable-docs \
diff --git a/package/qemu/patches/patch-linux-user_syscall_c b/package/qemu/patches/patch-linux-user_syscall_c
new file mode 100644
index 000000000..8aee9c93b
--- /dev/null
+++ b/package/qemu/patches/patch-linux-user_syscall_c
@@ -0,0 +1,27 @@
+--- qemu-2.2.0.orig/linux-user/syscall.c 2014-12-09 08:45:43.000000000 -0600
++++ qemu-2.2.0/linux-user/syscall.c 2015-01-15 20:18:47.215154181 -0600
+@@ -44,6 +44,7 @@
+ #include <sys/mman.h>
+ #include <sys/swap.h>
+ #include <linux/capability.h>
++#include <linux/version.h>
+ #include <signal.h>
+ #include <sched.h>
+ #ifdef __ia64__
+@@ -96,6 +97,16 @@ int __clone2(int (*fn)(void *), void *ch
+ #include <linux/unistd.h>
+ #include <linux/cdrom.h>
+ #include <linux/hdreg.h>
++#ifdef NATIVE
++#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,11,0)
++#include <linux/soundcard.h>
++#else
++#include <linux/soundcard.h.oss3>
++#endif
++#else
++#include <linux/soundcard.h>
++#endif
++
+ #include <linux/soundcard.h>
+ #include <linux/kd.h>
+ #include <linux/mtio.h>