diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-21 11:48:26 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-21 11:48:26 (GMT) |
commit | 3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df (patch) | |
tree | 8accb5566375ef844c76075febc692ce57b97c83 /configure | |
parent | 8cbd3df3ce75699cdc64d0d1bd903af43da43fa0 (diff) | |
parent | 708784255e42f0946ab36d2a55e4c4ae99b086ec (diff) | |
download | cpython-3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df.zip cpython-3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df.tar.gz cpython-3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df.tar.bz2 |
Issue #28538: Merge 3.6.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -11202,7 +11202,6 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ futimens futimes gai_strerror getentropy \ getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ - if_nameindex \ initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ memrchr mbrtowc mkdirat mkfifo \ mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ @@ -12650,6 +12649,39 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +# On Android API level 24 if_nameindex() is available, but the if_nameindex +# structure is not defined. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5 +$as_echo_n "checking for if_nameindex... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_NET_IF_H +# include <net/if.h> +#endif + +int +main () +{ +struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +$as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + # On OSF/1 V5.1, getaddrinfo is available, but a define # for [no]getaddrinfo in netdb.h. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |