Include sys/socket.h for AF_UNSPEC on FreeBSD
[darkstat] / darkstat.c
index ca28b94..308cba5 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "err.h"
 #include <arpa/inet.h>
+#include <sys/socket.h>
 #include <netdb.h>
 #include <assert.h>
 #include <errno.h>