ITS#7332 Changes required to build with Microsoft Visual Studio

This commit is contained in:
Mat Booth 2012-07-23 13:51:03 +01:00 committed by Howard Chu
parent 832f7de6ae
commit e6d190c7de
3 changed files with 6 additions and 0 deletions

View file

@ -62,6 +62,7 @@
#ifdef HAVE_WINSOCK2
#include <winsock2.h>
#include <ws2tcpip.h>
#elif HAVE_WINSOCK
#include <winsock.h>
#endif

View file

@ -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))

View file

@ -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 }
};