diff --git a/common/socket_utils.cc b/common/socket_utils.cc
index 99a4a23..f7a872b 100644
--- a/common/socket_utils.cc
+++ b/common/socket_utils.cc
@@ -23,6 +23,7 @@
 
 #include <cmath>
 #include <limits>
+#include <sys/time.h>
 
 using namespace std;