From 456cfa0bd21a97fc82913537a63533e2d3d43178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Fri, 26 May 2023 12:14:04 +0200 Subject: Network: Fix IFF_UP conflict on Linux with unity builds I cannot repro this myself, but from the bug report it seems to be defined in two headers, so we should consistently use the same one. Fixes: QTBUG-113787 Pick-to: 6.5 Change-Id: I9f1cc51e379c33dbbf659946340a5207aaeb448a Reviewed-by: Thiago Macieira Reviewed-by: Qt CI Bot --- src/network/socket/qnativesocketengine_unix.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/network/socket/qnativesocketengine_unix.cpp') diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp index dd3c57de1e4..d5f2bfbac44 100644 --- a/src/network/socket/qnativesocketengine_unix.cpp +++ b/src/network/socket/qnativesocketengine_unix.cpp @@ -18,7 +18,11 @@ #include #include #ifndef QT_NO_IPV6IFNAME +#ifdef Q_OS_LINUX +#include +#else // Q_OS_LINUX #include +#endif // !Q_OS_LINUX #endif #ifdef QT_LINUXBASE #include -- cgit v1.2.3