mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #28000: Fix gethostbyname_r() usage on AIX with _LINUX_SOURCE_COMPAT
Patch by Matthieu S.
This commit is contained in:
parent
9544a365bd
commit
c9e08d8cb5
2 changed files with 4 additions and 1 deletions
|
@ -1290,6 +1290,7 @@ James Rutherford
|
||||||
Chris Ryland
|
Chris Ryland
|
||||||
Bernt Røskar Brenna
|
Bernt Røskar Brenna
|
||||||
Constantina S.
|
Constantina S.
|
||||||
|
Matthieu S
|
||||||
Patrick Sabin
|
Patrick Sabin
|
||||||
Sébastien Sablé
|
Sébastien Sablé
|
||||||
Suman Saha
|
Suman Saha
|
||||||
|
|
|
@ -168,12 +168,14 @@ if_indextoname(index) -- return the corresponding interface name\n\
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R
|
#ifdef HAVE_GETHOSTBYNAME_R
|
||||||
# if defined(_AIX)
|
# if defined(_AIX) && !defined(_LINUX_SOURCE_COMPAT)
|
||||||
# define HAVE_GETHOSTBYNAME_R_3_ARG
|
# define HAVE_GETHOSTBYNAME_R_3_ARG
|
||||||
# elif defined(__sun) || defined(__sgi)
|
# elif defined(__sun) || defined(__sgi)
|
||||||
# define HAVE_GETHOSTBYNAME_R_5_ARG
|
# define HAVE_GETHOSTBYNAME_R_5_ARG
|
||||||
# elif defined(linux)
|
# elif defined(linux)
|
||||||
/* Rely on the configure script */
|
/* Rely on the configure script */
|
||||||
|
# elif defined(_LINUX_SOURCE_COMPAT) /* Linux compatibility on AIX */
|
||||||
|
# define HAVE_GETHOSTBYNAME_R_6_ARG
|
||||||
# else
|
# else
|
||||||
# undef HAVE_GETHOSTBYNAME_R
|
# undef HAVE_GETHOSTBYNAME_R
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue