mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 03:44:58 -05:00
ITS#7332 Changes required to build with Microsoft Visual Studio
This commit is contained in:
parent
832f7de6ae
commit
e6d190c7de
3 changed files with 6 additions and 0 deletions
|
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue