1
0
mirror of https://github.com/simh/simh.git synced 2026-01-29 13:11:26 +00:00

Fix build on VMS (IA64)

This commit is contained in:
Mark Pizzolato
2012-12-19 12:45:03 -08:00
parent 2c14136473
commit 3346f4a32c
5 changed files with 18 additions and 11 deletions

View File

@@ -143,6 +143,13 @@ typedef int (WSAAPI *getaddrinfo_func) (const char *hostname,
struct addrinfo **res);
static getaddrinfo_func p_getaddrinfo;
#if defined(VMS)
typedef size_t socklen_t;
#if !defined(EAI_OVERFLOW)
#define EAI_OVERFLOW EAI_FAIL
#endif
#endif
typedef int (WSAAPI *getnameinfo_func) (const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags);
static getnameinfo_func p_getnameinfo;