patch-linux-user_syscall_c 739 B

123456789101112131415161718192021222324252627
  1. --- qemu-2.2.0.orig/linux-user/syscall.c 2014-12-09 08:45:43.000000000 -0600
  2. +++ qemu-2.2.0/linux-user/syscall.c 2015-01-15 20:18:47.215154181 -0600
  3. @@ -44,6 +44,7 @@
  4. #include <sys/mman.h>
  5. #include <sys/swap.h>
  6. #include <linux/capability.h>
  7. +#include <linux/version.h>
  8. #include <signal.h>
  9. #include <sched.h>
  10. #ifdef __ia64__
  11. @@ -96,6 +97,16 @@ int __clone2(int (*fn)(void *), void *ch
  12. #include <linux/unistd.h>
  13. #include <linux/cdrom.h>
  14. #include <linux/hdreg.h>
  15. +#ifdef NATIVE
  16. +#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,11,0)
  17. +#include <linux/soundcard.h>
  18. +#else
  19. +#include <linux/soundcard.h.oss3>
  20. +#endif
  21. +#else
  22. +#include <linux/soundcard.h>
  23. +#endif
  24. +
  25. #include <linux/soundcard.h>
  26. #include <linux/kd.h>
  27. #include <linux/mtio.h>