1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c

metze
(This used to be commit 5648c8a0de)
This commit is contained in:
Stefan Metzmacher 2007-10-25 09:16:11 +02:00
parent 974890ebdf
commit 74a2b05793

View File

@ -136,6 +136,17 @@ const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size);
#define AI_ADDRCONFIG 0x0020
#endif
#ifndef AI_NUMERICSERV
/*
* logic copied from AI_NUMERICHOST
*/
#if defined(HAVE_STRUCT_ADDRINFO) && defined(HAVE_GETADDRINFO)
#define AI_NUMERICSERV 0
#else
#define AI_NUMERICSERV 0x0400
#endif
#endif
#ifndef NI_NUMERICHOST
#define NI_NUMERICHOST 1
#endif