diff options
| author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-21 17:30:50 +0100 |
|---|---|---|
| committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-21 17:30:50 +0100 |
| commit | a1cb68960206033f560652e6a8e0460559f1cbdd (patch) | |
| tree | 97efccf73fedf8ab3bf1343fb0b9d4a9b3a0dbca /configure.ac | |
| parent | 3d42225e3d87fea830b43de781ca8cfa0dd0fcea (diff) | |
| parent | 40e320b31e51a8994725ae330884fdbfc043f357 (diff) | |
| download | cpython-git-a1cb68960206033f560652e6a8e0460559f1cbdd.tar.gz | |
Issue #28538: Merge 3.6.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cb43b28b76..1a08af3b68 100644 --- a/configure.ac +++ b/configure.ac @@ -3738,10 +3738,22 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ AC_MSG_RESULT(no) ]) -# On Android API level 24 if_nameindex() is available, but the if_nameindex -# structure is not defined. +# On Android API level 24 with android-ndk-r13, if_nameindex() is available, +# but the if_nameindex structure is not defined. AC_MSG_CHECKING(for if_nameindex) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +#include <stdio.h> +#ifdef STDC_HEADERS +# include <stdlib.h> +# include <stddef.h> +#else +# ifdef HAVE_STDLIB_H +# include <stdlib.h> +# endif +#endif +#ifdef HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif #ifdef HAVE_NET_IF_H # include <net/if.h> #endif |
