0005-qemu-Do-not-include-file-if-not-exists.patch 999 B

1234567891011121314151617181920212223242526272829303132333435
  1. From f39e7bfc5ed07b5ecaeb705c4eae4855ca120d47 Mon Sep 17 00:00:00 2001
  2. From: Oleksiy Obitotskyy <oobitots@cisco.com>
  3. Date: Wed, 25 Mar 2020 21:21:35 +0200
  4. Subject: [PATCH 05/12] qemu: Do not include file if not exists
  5. Script configure checks for if_alg.h and check failed but
  6. if_alg.h still included.
  7. Upstream-Status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg07188.html]
  8. Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
  9. [update patch context]
  10. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
  11. ---
  12. linux-user/syscall.c | 2 ++
  13. 1 file changed, 2 insertions(+)
  14. diff --git a/linux-user/syscall.c b/linux-user/syscall.c
  15. index f65045efe..340e0c6f0 100644
  16. --- a/linux-user/syscall.c
  17. +++ b/linux-user/syscall.c
  18. @@ -113,7 +113,9 @@
  19. #include <linux/blkpg.h>
  20. #include <netpacket/packet.h>
  21. #include <linux/netlink.h>
  22. +#if defined(CONFIG_AF_ALG)
  23. #include <linux/if_alg.h>
  24. +#endif
  25. #include <linux/rtc.h>
  26. #include <sound/asound.h>
  27. #ifdef HAVE_BTRFS_H
  28. --
  29. 2.30.2