blob: 678e059463dcaaa22edf23c76c6d463e5cf8dc26 [file] [log] [blame]
Andrew Geisslerd25ed322020-06-27 00:28:28 -05001From 34247f83095f8cdcdc1f9d7f0c6ffbd46b25d979 Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Wed, 25 Mar 2020 21:21:35 +0200
4Subject: [PATCH] qemu: Do not include file if not exists
5
6Script configure checks for if_alg.h and check failed but
7if_alg.h still included.
8
9Upstream-status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg07188.html]
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Andrew Geisslerd25ed322020-06-27 00:28:28 -050011
12[update patch context]
13Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Andrew Geissler82c905d2020-04-13 13:39:40 -050014---
15 linux-user/syscall.c | 2 ++
16 1 file changed, 2 insertions(+)
17
Andrew Geissler635e0e42020-08-21 15:58:33 -050018Index: qemu-5.1.0/linux-user/syscall.c
19===================================================================
20--- qemu-5.1.0.orig/linux-user/syscall.c
21+++ qemu-5.1.0/linux-user/syscall.c
Andrew Geisslerd25ed322020-06-27 00:28:28 -050022@@ -109,7 +109,9 @@
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 #include <linux/blkpg.h>
24 #include <netpacket/packet.h>
25 #include <linux/netlink.h>
26+#if defined(CONFIG_AF_ALG)
27 #include <linux/if_alg.h>
28+#endif
Andrew Geisslerd25ed322020-06-27 00:28:28 -050029 #include <linux/rtc.h>
30 #include <sound/asound.h>
Andrew Geissler635e0e42020-08-21 15:58:33 -050031 #ifdef HAVE_DRM_H