]> sjero.net Git - wget/commitdiff
Ensure FD_TO_SOCKET is defined under Windows.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 4 Apr 2011 14:46:38 +0000 (16:46 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 4 Apr 2011 14:46:38 +0000 (16:46 +0200)
src/ChangeLog
src/openssl.c

index 2b82006dc7b9bd2e17974cac2b498d68eee11e94..4c6ab208824ce3e9d2191f7b9b10dff6f0801620 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-04  Giuseppe Scrivano  <gscrivano@gnu.org>
 
+       * openssl.c [WINDOWS]: Include <w32sock.h>.
+
        * host.c [WINDOWS]: Include <winsock2.h> and <ws2tcpip.h>.
        Suggested by: Ray Satiro <raysatiro@yahoo.com>.
 
index 5520a77ecaf5e2a281e44577ff8819fc9edd640e..60e794f6dbcb4bbc112f45bccb8989c15c1916db 100644 (file)
@@ -46,6 +46,10 @@ as that of the covered work.  */
 #include "url.h"
 #include "ssl.h"
 
+#ifdef WINDOWS
+# include <w32sock.h>
+#endif
+
 /* Application-wide SSL context.  This is common to all SSL
    connections.  */
 static SSL_CTX *ssl_ctx;