Skip to content

Commit 3732ab4

Browse files
committed
Try addressing CI
1 parent 59ff354 commit 3732ab4

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Gate `socket.if_nametoindex` and `socket.if_indextoname` on their respective
2+
OS functionality. This matters for Android, on which both are available
3+
prior to API 24, as they are gated on ``if_nameindex`` which is not!

Modules/clinic/socketmodule.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyconfig.h.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,15 @@
748748
/* Define to 1 if you have the <iconv.h> header file. */
749749
#undef HAVE_ICONV_H
750750

751+
/* Define to 1 if you have the 'if_indextoname' function. */
752+
#undef HAVE_IF_INDEXTONAME
753+
751754
/* Define to 1 if you have the 'if_nameindex' function. */
752755
#undef HAVE_IF_NAMEINDEX
753756

757+
/* Define to 1 if you have the 'if_nametoindex' function. */
758+
#undef HAVE_IF_NAMETOINDEX
759+
754760
/* Define if you have the 'inet_aton' function. */
755761
#undef HAVE_INET_ATON
756762

@@ -2279,4 +2285,3 @@
22792285
#endif
22802286

22812287
#endif /*Py_PYCONFIG_H*/
2282-

0 commit comments

Comments
 (0)