chdir("/") immediately after chroot()
[darkstat] / addr.c
diff --git a/addr.c b/addr.c
index dc23e32..721d5e3 100644 (file)
--- a/addr.c
+++ b/addr.c
@@ -9,6 +9,7 @@
 
 #include "addr.h"
 
+#include <arpa/inet.h> /* for inet_ntop */
 #include <assert.h>
 #include <string.h> /* for memcmp */
 #include <netdb.h> /* for getaddrinfo */