From 89e38f55405d00ca00ec64936531d8db18954a95 Mon Sep 17 00:00:00 2001 From: Chris Kuhn Date: Wed, 8 Mar 2023 04:00:22 +0100 Subject: treewide: Fix header includes to build with musl Roughly inspired from a patch by Chris Kuhn: fix up includes so that we can build against musl: glibc is more lenient as headers generally include a larger amount of other headers. Compared to the original patch, I only included what was needed directly in C files, instead of adding blanket includes in local header files. It's a bit more involved, but more consistent with the current (not ideal) situation. Reported-by: Chris Kuhn Signed-off-by: Stefano Brivio Reviewed-by: David Gibson --- passt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'passt.c') diff --git a/passt.c b/passt.c index f67213a..dfec9d4 100644 --- a/passt.c +++ b/passt.c @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include #include -- cgit v1.2.3