--- a/src/screens/visualizer.cpp
+++ b/src/screens/visualizer.cpp
@@ -32,6 +32,7 @@
 #include <limits>
 #include <fcntl.h>
 #include <netdb.h>
+#include <netinet/in.h>
 #include <cassert>
 
 #include "global.h"
