UDP: Protect call to UDP API based on feature
Fails to compile in some qtlite setup Pick-to: 6.6 6.5 Change-Id: If04c1ca3f1b4eb59517902b8caab167f4627391b Reviewed-by: Jari Helaakoski <jari.helaakoski@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 505e7ec37d98da2010981ed17c39dd934edf47d1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e86f223eba
commit
39e8c72c67
@ -642,7 +642,11 @@ bool QAbstractSocketPrivate::canReadNotification()
|
||||
socketEngine->setReadNotificationEnabled(false);
|
||||
return true;
|
||||
}
|
||||
if (!isUdpSocket || socketEngine->hasPendingDatagrams()) {
|
||||
if (!isUdpSocket
|
||||
#if QT_CONFIG(udpsocket)
|
||||
|| socketEngine->hasPendingDatagrams()
|
||||
#endif
|
||||
) {
|
||||
hasPendingData = true;
|
||||
hasPendingDatagram = isUdpSocket;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user