blob: 3f3c39f996bae23876f9c97de8d5c58674f2c34f [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001From f39e7bfc5ed07b5ecaeb705c4eae4855ca120d47 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
Andrew Geisslerd5838332022-05-27 11:33:10 -05004Subject: [PATCH 05/12] qemu: Do not include file if not exists
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
6Script configure checks for if_alg.h and check failed but
7if_alg.h still included.
8
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05009Upstream-Status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg07188.html]
Andrew Geissler82c905d2020-04-13 13:39:40 -050010Signed-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 Geisslerd5838332022-05-27 11:33:10 -050014
Andrew Geissler82c905d2020-04-13 13:39:40 -050015---
16 linux-user/syscall.c | 2 ++
17 1 file changed, 2 insertions(+)
18
Andrew Geisslerd5838332022-05-27 11:33:10 -050019diff --git a/linux-user/syscall.c b/linux-user/syscall.c
20index f65045efe..340e0c6f0 100644
21--- a/linux-user/syscall.c
22+++ b/linux-user/syscall.c
William A. Kennington IIIac69b482021-06-02 12:28:27 -070023@@ -113,7 +113,9 @@
Andrew Geissler82c905d2020-04-13 13:39:40 -050024 #include <linux/blkpg.h>
25 #include <netpacket/packet.h>
26 #include <linux/netlink.h>
27+#if defined(CONFIG_AF_ALG)
28 #include <linux/if_alg.h>
29+#endif
Andrew Geisslerd25ed322020-06-27 00:28:28 -050030 #include <linux/rtc.h>
31 #include <sound/asound.h>
William A. Kennington IIIac69b482021-06-02 12:28:27 -070032 #ifdef HAVE_BTRFS_H
Andrew Geisslerd5838332022-05-27 11:33:10 -050033--
342.30.2
35