Ensure FD_TO_SOCKET is defined under Windows.

This commit is contained in:
Giuseppe Scrivano 2011-04-04 16:46:38 +02:00
parent 99e9291da3
commit 4d564bd630
2 changed files with 6 additions and 0 deletions

View 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>.

View 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;