summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/canon-host.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/canon-host.c b/lib/canon-host.c
index f302f5736..c70f4aa03 100644
--- a/lib/canon-host.c
+++ b/lib/canon-host.c
@@ -31,6 +31,9 @@
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>