diff --git a/src/network/socket/qlocalsocket.h b/src/network/socket/qlocalsocket.h index 817990a45c..ed981b5eb8 100644 --- a/src/network/socket/qlocalsocket.h +++ b/src/network/socket/qlocalsocket.h @@ -44,6 +44,10 @@ #include #include +#ifndef QT_NO_DEBUG_STREAM +#include +#endif + QT_REQUIRE_CONFIG(localserver); QT_BEGIN_NAMESPACE @@ -155,7 +159,6 @@ private: }; #ifndef QT_NO_DEBUG_STREAM -#include Q_NETWORK_EXPORT QDebug operator<<(QDebug, QLocalSocket::LocalSocketError); Q_NETWORK_EXPORT QDebug operator<<(QDebug, QLocalSocket::LocalSocketState); #endif