Android: Fix compilation of qtcpsocket test
No pthread_yield() in the Android NDK. Change-Id: I5ff77c55f30c172ee7fefb1129bdf475b318449e Reviewed-by: BogDan Vatra <bogdan@kde.org>bb10
parent
190bb186ae
commit
8638895f6b
|
|
@ -1976,9 +1976,9 @@ public slots:
|
|||
attemptedToConnect = true;
|
||||
sock->connectToHost(QtNetworkSettings::serverName(), 80);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#if defined(Q_OS_MAC)
|
||||
pthread_yield_np();
|
||||
#elif defined Q_OS_LINUX
|
||||
#elif defined Q_OS_LINUX && !defined Q_OS_ANDROID
|
||||
pthread_yield();
|
||||
#endif
|
||||
if (!sock->waitForConnected()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue