Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 28953:09422c301826 legacy-trunk
Patch #724588: Check whether the address of hstrerror and inet_pton can
be taken, and define NI_MAX{HOST|SERV} if necessary.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 03 May 2003 10:12:45 +0000 |
| parents | ac487a7f7f2c |
| children | e1d5ca8ab7dc |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat May 03 10:00:22 2003 +0000 +++ b/Modules/socketmodule.c Sat May 03 10:12:45 2003 +0000 @@ -293,6 +293,16 @@ #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... */
