]> granicus.if.org Git - curl/commitdiff
include <sys/socket.h> to compile the fd_set stuff properly on all systems
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Feb 2003 09:03:03 +0000 (09:03 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Feb 2003 09:03:03 +0000 (09:03 +0000)
lib/multi.c
lib/ssluse.c

index 7ac984f7f7ad4d1767510a3431e0bfcd0caa9840..0dd6994324337da33bafcc5a6c16ce44bda7730d 100644 (file)
 #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"
index cb68ce5936fc98f28a86eaaf01408cd0840b8ccd..0983db379487732ce43234c2dd4d96f120b111e3 100644 (file)
@@ -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"