Index: src/command/control/stop.c
--- src/command/control/stop.c.orig	2020-05-26 14:11:50.000000000 +0200
+++ src/command/control/stop.c	2020-05-27 09:11:57.691532000 +0200
@@ -7,6 +7,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <string.h>
+#include <sys/types.h>
 #include <sys/file.h>
 #include <unistd.h>
 
Index: src/common/io/tls/client.c
--- src/common/io/tls/client.c.orig	2020-05-27 09:11:57.691944000 +0200
+++ src/common/io/tls/client.c	2020-05-27 09:15:56.365762000 +0200
@@ -5,6 +5,8 @@
 
 #include <string.h>
 #include <strings.h>
+#include <sys/types.h>
+#include <netinet/in.h>
 
 #include <openssl/x509v3.h>
 
Index: src/common/time.c
--- src/common/time.c.orig	2020-05-26 14:11:50.000000000 +0200
+++ src/common/time.c	2020-05-27 09:11:57.692359000 +0200
@@ -4,6 +4,7 @@
 #include "build.auto.h"
 
 #include <stdio.h>
+#define __XSI_VISIBLE 1
 #include <sys/time.h>
 
 #include "common/debug.h"
