summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-11-14 05:04:36 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-11-14 05:04:36 (GMT)
commit5e17ad971693da3a16f839ef300e9e263688a319 (patch)
tree18f61b96067925667b40a603ee1e835197d8c074 /Modules
parentbb0f8e6bbab1e7bac9b1825b4c15a788e3bd9a27 (diff)
parentf8cebad2901799ebfceb3228a7ba69a504e21f75 (diff)
downloadcpython-5e17ad971693da3a16f839ef300e9e263688a319.zip
cpython-5e17ad971693da3a16f839ef300e9e263688a319.tar.gz
cpython-5e17ad971693da3a16f839ef300e9e263688a319.tar.bz2
Merge AIX fixes from 3.6
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 532a6e8..d168e56 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