diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp index fbff6dc4d32..db031fcc6b1 100644 --- a/src/network/kernel/qnetworkinterface_unix.cpp +++ b/src/network/kernel/qnetworkinterface_unix.cpp @@ -61,6 +61,11 @@ # define QT_NO_GETIFADDRS #endif +#ifdef Q_OS_LINUX_ANDROID +// android lacks if_nameindex +# define QT_NO_IPV6IFNAME +#endif + #ifndef QT_NO_GETIFADDRS # include #endif