aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorChris Kuhn <kuhnchris+github@kuhnchris.eu>2023-03-08 04:00:22 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-03-09 03:44:21 +0100
commit89e38f55405d00ca00ec64936531d8db18954a95 (patch)
tree331faec6fb4a9a285e4b3ec0b776cf41611b4d2e /tcp.c
parent5c58feab7bbf55ffec35df2c5f82f0d288a3c987 (diff)
downloadpasst-89e38f55405d00ca00ec64936531d8db18954a95.tar
passt-89e38f55405d00ca00ec64936531d8db18954a95.tar.gz
passt-89e38f55405d00ca00ec64936531d8db18954a95.tar.bz2
passt-89e38f55405d00ca00ec64936531d8db18954a95.tar.lz
passt-89e38f55405d00ca00ec64936531d8db18954a95.tar.xz
passt-89e38f55405d00ca00ec64936531d8db18954a95.tar.zst
passt-89e38f55405d00ca00ec64936531d8db18954a95.zip
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 <kuhnchris+github@kuhnchris.eu> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcp.c b/tcp.c
index 8e8d653..96ca5c7 100644
--- a/tcp.c
+++ b/tcp.c
@@ -267,6 +267,7 @@
#include <sched.h>
#include <fcntl.h>
#include <stdio.h>
+#include <signal.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>