From 9993b0a079903368224b3f889075bdc773cfae28 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 1 Apr 2009 17:13:38 +0100 Subject: [PATCH] include: Add defines for NI_MAXHOST and NI_MAXSERV to ws2tcpip.h. --- include/ws2tcpip.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h index 80841707cb..fc9f2587d2 100644 --- a/include/ws2tcpip.h +++ b/include/ws2tcpip.h @@ -92,6 +92,14 @@ typedef ADDRINFOA ADDRINFO, *LPADDRINFO; # define WS_EAI_SOCKTYPE WSAESOCKTNOSUPPORT #endif +#ifndef USE_WS_PREFIX +# define NI_MAXHOST 1025 +# define NI_MAXSERV 32 +#else +# define WS_NI_MAXHOST 1025 +# define WS_NI_MAXSERV 32 +#endif + /* Possible Windows flags for getnameinfo() */ #ifndef USE_WS_PREFIX # define NI_NOFQDN 0x01 -- 2.32.0.93.g670b81a890