Fix undeclared identifier 'geteuid' for VxWorks
Task-number: QTBUG-115777 Change-Id: Ic95d5f92af185ac64b14ae6fafd4ffe507911f5b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8c468fc2ab
commit
185627557e
@ -10,7 +10,7 @@
|
||||
#include <qdir.h>
|
||||
#include <qset.h>
|
||||
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_VXWORKS)
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include <unistd.h> // for geteuid
|
||||
#endif
|
||||
|
||||
@ -120,7 +120,7 @@ void tst_QSaveFile::retryTransactionalWrite()
|
||||
// root can open the read-only file for writing...
|
||||
if (geteuid() == 0)
|
||||
QSKIP("This test does not work as the root user");
|
||||
#endif
|
||||
#endif //Q_OS_UNIX
|
||||
QTemporaryDir dir;
|
||||
QVERIFY2(dir.isValid(), qPrintable(dir.errorString()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user