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
parent
ff0ee3d985
commit
0c44dd3a33
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue