diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-11-14 05:04:12 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-11-14 05:04:12 (GMT) |
commit | f8cebad2901799ebfceb3228a7ba69a504e21f75 (patch) | |
tree | 2295b6b8cb9e7785ce54e92bd85505e92933e34d /Modules | |
parent | f8c25e3424818b12f8029a8122672037098ee8a4 (diff) | |
parent | c9e08d8cb508aecaaa327ee1f27fe4164235f682 (diff) | |
download | cpython-f8cebad2901799ebfceb3228a7ba69a504e21f75.zip cpython-f8cebad2901799ebfceb3228a7ba69a504e21f75.tar.gz cpython-f8cebad2901799ebfceb3228a7ba69a504e21f75.tar.bz2 |
Merge AIX fixes from 3.5 into 3.6
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2620d56..c9a38cc 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -172,12 +172,14 @@ if_indextoname(index) -- return the corresponding interface name\n\ #endif #ifdef HAVE_GETHOSTBYNAME_R -# if defined(_AIX) +# if defined(_AIX) && !defined(_LINUX_SOURCE_COMPAT) # define HAVE_GETHOSTBYNAME_R_3_ARG # elif defined(__sun) || defined(__sgi) # define HAVE_GETHOSTBYNAME_R_5_ARG # elif defined(__linux__) /* Rely on the configure script */ +# elif defined(_LINUX_SOURCE_COMPAT) /* Linux compatibility on AIX */ +# define HAVE_GETHOSTBYNAME_R_6_ARG # else # undef HAVE_GETHOSTBYNAME_R # endif |