aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_sleep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_sleep.c b/src/tool_sleep.c
index 1548d58ea..08db8861b 100644
--- a/src/tool_sleep.c
+++ b/src/tool_sleep.c
@@ -25,6 +25,10 @@
# include <sys/select.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
#ifdef HAVE_SYS_POLL_H
# include <sys/poll.h>
#elif defined(HAVE_POLL_H)