From 81c6597fc39fdc4c28bf9ed0f751226bae1d2727 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 28 Apr 2021 23:45:07 +0200 Subject: QLocalSocket: fix inclusions in namespaced builds An include statement appeared after opening the Qt namespace, thus injecting symbols in there. Move it outside. Change-Id: I8e95e821b36ad4e4ceed5b0645bf8ebf7e531e06 Reviewed-by: Thiago Macieira (cherry picked from commit 99e95a2cc6ddec5ebd7f69489811be2e9aef98b9) Reviewed-by: Qt Cherry-pick Bot --- src/network/socket/qlocalsocket.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/network/socket/qlocalsocket.h b/src/network/socket/qlocalsocket.h index 22763cb339..9d49ee6a47 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 @@ -143,7 +147,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 -- cgit v1.2.3