summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@digia.com>2013-01-09 12:16:41 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-10 14:34:03 +0100
commit6ec12fb227f49efbea234861169f84feb98c2275 (patch)
treedb8c941b4db86b513892654bd4e42dfe5ff258c5
parent141482bb6eea76e361b0c6a64dd99551d43319f7 (diff)
Do not use getuid() and getgid() functions in VxWorks
VxWorks has no concepts of users and groups, therefore no such functions exists on VxWorks. Change-Id: I56e1c80ffd4e8d88ae41e3a0bb97df05c6a2f98f Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
-rw-r--r--src/gui/dialogs/qfileinfogatherer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfileinfogatherer.cpp b/src/gui/dialogs/qfileinfogatherer.cpp
index 0eb30795b1..bd3b71834b 100644
--- a/src/gui/dialogs/qfileinfogatherer.cpp
+++ b/src/gui/dialogs/qfileinfogatherer.cpp
@@ -80,7 +80,7 @@ QFileInfoGatherer::QFileInfoGatherer(QObject *parent)
{
#ifdef Q_OS_WIN
m_resolveSymlinks = true;
-#elif !defined(Q_OS_INTEGRITY)
+#elif !defined(Q_OS_INTEGRITY) && !defined(Q_OS_VXWORKS)
userId = getuid();
groupId = getgid();
#endif