blob: 6e38d814cda585f69c8bb57c88b62d4fc77d9059 [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
18diff --git a/linux-user/syscall.c b/linux-user/syscall.c
Andrew Geisslerd25ed322020-06-27 00:28:28 -050019index d6f8cc97..a61420e7 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050020--- a/linux-user/syscall.c
21+++ b/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 Geissler82c905d2020-04-13 13:39:40 -050031 #include "linux_loop.h"
Andrew Geissler82c905d2020-04-13 13:39:40 -050032--
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500332.24.0
Andrew Geissler82c905d2020-04-13 13:39:40 -050034