summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-02-21 18:57:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-25 17:34:40 +0100
commitfaefc09e93f99b86820ca50495351825059dc3c9 (patch)
tree5cf51139a8fbafc564899718df0ead198fc31fa5 /tests
parent6d270051a23fbfe1cb148ced365ea3a6aecf5e60 (diff)
Fix qfile autotest on qnx
This fixes the compilation of the qfile autotest on qnx. Change-Id: Iab099e8b754a4341152e338ff6e3d22a83c625e3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/io/qfile/tst_qfile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp
index df7b397481..6fa222dd72 100644
--- a/tests/auto/corelib/io/qfile/tst_qfile.cpp
+++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp
@@ -82,6 +82,12 @@ QT_END_NAMESPACE
# include <qplatformdefs.h>
#endif
+#ifdef Q_OS_QNX
+#ifdef open
+#undef open
+#endif
+#endif
+
#include <stdio.h>
#include <errno.h>