aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/curl/multi.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/curl/multi.h b/include/curl/multi.h
index 42fa1dd4c..b1ca28b21 100644
--- a/include/curl/multi.h
+++ b/include/curl/multi.h
@@ -47,11 +47,12 @@
Example sources using this interface is here: ../multi/
*/
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
+
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
+#else
+#include <sys/socket.h>
+#include <sys/time.h>
#endif
#include <curl/curl.h>