aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/multi.c5
-rw-r--r--lib/ssluse.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 7ac984f7f..0dd699432 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -24,6 +24,11 @@
#include "setup.h"
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
#include <curl/curl.h>
#include "urldata.h"
diff --git a/lib/ssluse.c b/lib/ssluse.c
index cb68ce593..0983db379 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -30,6 +30,9 @@
#include <string.h>
#include <stdlib.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#include "urldata.h"
#include "sendf.h"