Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 1 | From 98c2da129db19ee63d7e21b77a0ef70822c95069 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] qemu: Do not include file if not exists |
| 5 | |
| 6 | Script configure checks for if_alg.h and check failed but |
| 7 | if_alg.h still included. |
| 8 | |
| 9 | Upstream-status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg07188.html] |
| 10 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> |
| 11 | --- |
| 12 | linux-user/syscall.c | 2 ++ |
| 13 | 1 file changed, 2 insertions(+) |
| 14 | |
| 15 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c |
| 16 | index fc18f244..68d62666 100644 |
| 17 | --- a/linux-user/syscall.c |
| 18 | +++ b/linux-user/syscall.c |
| 19 | @@ -106,7 +106,9 @@ |
| 20 | #include <linux/blkpg.h> |
| 21 | #include <netpacket/packet.h> |
| 22 | #include <linux/netlink.h> |
| 23 | +#if defined(CONFIG_AF_ALG) |
| 24 | #include <linux/if_alg.h> |
| 25 | +#endif |
| 26 | #include "linux_loop.h" |
| 27 | #include "uname.h" |
| 28 | |
| 29 | -- |
| 30 | 2.20.1 |
| 31 | |