Commit c35b6e87 authored by Mat Booth's avatar Mat Booth Committed by Quanah Gibson-Mount
Browse files

ITS#7332 Changes required to build with Microsoft Visual Studio

parent 61947ac6
......@@ -62,6 +62,7 @@
#ifdef HAVE_WINSOCK2
#include <winsock2.h>
#include <ws2tcpip.h>
#elif HAVE_WINSOCK
#include <winsock.h>
#endif
......
......@@ -45,6 +45,9 @@
/* for struct timeval */
#include <ac/time.h>
#ifdef _WIN32
#include <ac/socket.h>
#endif
#undef TV2MILLISEC
#define TV2MILLISEC(tv) (((tv)->tv_sec * 1000) + ((tv)->tv_usec/1000))
......
......@@ -782,7 +782,9 @@ char *ldap_pvt_gai_strerror (int code) {
{ EAI_NONAME, N_("Name or service not known") },
{ EAI_SERVICE, N_("Servname not supported for ai_socktype") },
{ EAI_SOCKTYPE, N_("ai_socktype not supported") },
#ifdef EAI_SYSTEM
{ EAI_SYSTEM, N_("System error") },
#endif
{ 0, NULL }
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment