Skip to content

Commit a1cb689

Browse files
author
Xavier de Gaye
committed
Issue python#28538: Merge 3.6.
2 parents 3d42225 + 40e320b commit a1cb689

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

configure

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12649,13 +12649,25 @@ fi
1264912649
rm -f core conftest.err conftest.$ac_objext \
1265012650
conftest$ac_exeext conftest.$ac_ext
1265112651

12652-
# On Android API level 24 if_nameindex() is available, but the if_nameindex
12653-
# structure is not defined.
12652+
# On Android API level 24 with android-ndk-r13, if_nameindex() is available,
12653+
# but the if_nameindex structure is not defined.
1265412654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5
1265512655
$as_echo_n "checking for if_nameindex... " >&6; }
1265612656
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1265712657
/* end confdefs.h. */
1265812658
12659+
#include <stdio.h>
12660+
#ifdef STDC_HEADERS
12661+
# include <stdlib.h>
12662+
# include <stddef.h>
12663+
#else
12664+
# ifdef HAVE_STDLIB_H
12665+
# include <stdlib.h>
12666+
# endif
12667+
#endif
12668+
#ifdef HAVE_SYS_SOCKET_H
12669+
# include <sys/socket.h>
12670+
#endif
1265912671
#ifdef HAVE_NET_IF_H
1266012672
# include <net/if.h>
1266112673
#endif

configure.ac

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3738,10 +3738,22 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
37383738
AC_MSG_RESULT(no)
37393739
])
37403740

3741-
# On Android API level 24 if_nameindex() is available, but the if_nameindex
3742-
# structure is not defined.
3741+
# On Android API level 24 with android-ndk-r13, if_nameindex() is available,
3742+
# but the if_nameindex structure is not defined.
37433743
AC_MSG_CHECKING(for if_nameindex)
37443744
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
3745+
#include <stdio.h>
3746+
#ifdef STDC_HEADERS
3747+
# include <stdlib.h>
3748+
# include <stddef.h>
3749+
#else
3750+
# ifdef HAVE_STDLIB_H
3751+
# include <stdlib.h>
3752+
# endif
3753+
#endif
3754+
#ifdef HAVE_SYS_SOCKET_H
3755+
# include <sys/socket.h>
3756+
#endif
37453757
#ifdef HAVE_NET_IF_H
37463758
# include <net/if.h>
37473759
#endif

0 commit comments

Comments
 (0)