Exclude network tests based on feature

Both tests in the conditional depend on the
qnetworkinterface feature, and will fail to build
if qt is configured without the networkinterface feature.

Additionally, a missing system header in a test was added.

Change-Id: Ife5989ee57675ebe117de2c92a4f96c7125cbab1
Pick-to: 6.3
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
David Skoland 2022-05-06 19:02:42 +02:00
parent ff0ee3d985
commit 0c44dd3a33
2 changed files with 5 additions and 3 deletions

View File

@ -3,9 +3,11 @@ if(NOT INTEGRITY)
add_subdirectory(qdnslookup)
add_subdirectory(qdnslookup_appless)
endif()
add_subdirectory(qnetworkproxyfactory)
if(QT_FEATURE_networkinterface)
add_subdirectory(qnetworkproxyfactory)
add_subdirectory(qnetworkinterface)
endif()
add_subdirectory(qnetworkproxy)
add_subdirectory(qnetworkinterface)
add_subdirectory(qnetworkdatagram)
add_subdirectory(qnetworkaddressentry)
add_subdirectory(qhostaddress)

View File

@ -40,7 +40,7 @@
# include <qt_windows.h>
#endif
#ifdef Q_OS_ANDROID
#if defined(Q_OS_ANDROID) || defined(Q_OS_WASM)
# include <netinet/in.h>
#endif