Skip to content

Commit e0afadb

Browse files
committed
Avoid using an undefined thing in if_nametoindex
1 parent c37a80a commit e0afadb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ _PyLong_##NAME##_Converter(PyObject *obj, void *ptr) \
631631
return 1; \
632632
}
633633

634-
#if defined(HAVE_IF_INDEXTONAME) || defined(MS_WINDOWS)
634+
#if defined(HAVE_IF_INDEXTONAME) || defined(HAVE_IF_NAMETOINDEX) || defined(MS_WINDOWS)
635635
# ifdef MS_WINDOWS
636636
UNSIGNED_INT_CONVERTER(NetIfindex, NET_IFINDEX)
637637
# else

0 commit comments

Comments
 (0)