Android: Fix compilation of qtcpsocket test

No pthread_yield() in the Android NDK.

Change-Id: I5ff77c55f30c172ee7fefb1129bdf475b318449e
Reviewed-by: BogDan Vatra <bogdan@kde.org>
bb10
Eskil Abrahamsen Blomfeldt 2014-06-27 15:56:55 +02:00
parent 190bb186ae
commit 8638895f6b
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {