diff --git a/src/network/kernel/qhostinfo.h b/src/network/kernel/qhostinfo.h index 600e97d80af..b4b66f43fe2 100644 --- a/src/network/kernel/qhostinfo.h +++ b/src/network/kernel/qhostinfo.h @@ -73,12 +73,14 @@ public: } #endif // Q_QDOC +#ifndef QT_NO_CONTEXTLESS_CONNECT // lookupHost to a callable (without context) template static inline int lookupHost(const QString &name, Functor &&slot) { return lookupHost(name, nullptr, std::forward(slot)); } +#endif // QT_NO_CONTEXTLESS_CONNECT private: QHostInfoPrivate *d_ptr;