21 lines
600 B
Diff
21 lines
600 B
Diff
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
|
|
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
|
|
@@ -31,7 +31,7 @@
|
|
#include <QtCore/private/qmetaobjectbuilder_p.h>
|
|
|
|
#ifdef Q_OS_LINUX
|
|
-# include <pthread.h>
|
|
+# include <sched.h>
|
|
#endif
|
|
|
|
#include <algorithm>
|
|
@@ -418,7 +418,7 @@ protected:
|
|
const char *nm = name.constData();
|
|
int tp = qRegisterMetaType<Bar>(nm);
|
|
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
|
|
- pthread_yield();
|
|
+ sched_yield();
|
|
#endif
|
|
QMetaType info(tp);
|
|
if (!info.isValid()) {
|