mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
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:
parent
e6bbb4d16f
commit
e941617671
4 changed files with 209 additions and 11 deletions
|
@ -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... */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue