Patch #724588: Check whether the address of hstrerror and inet_pton can

be taken, and define NI_MAX{HOST|SERV} if necessary.
This commit is contained in:
Martin v. Löwis 2003-05-03 10:12:45 +00:00
parent e6bbb4d16f
commit e941617671
4 changed files with 209 additions and 11 deletions

View file

@ -293,6 +293,16 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
#define SEGMENT_SIZE 65535
#endif
/*
* Constants for getnameinfo()
*/
#if !defined(NI_MAXHOST)
#define NI_MAXHOST 1025
#endif
#if !defined(NI_MAXSERV)
#define NI_MAXSERV 32
#endif
/* XXX There's a problem here: *static* functions are not supposed to have
a Py prefix (or use CapitalizedWords). Later... */