summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-22 18:18:21 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-10-23 13:05:08 (GMT)
commitd0fa7d4b30fa34fe2a684c331213528c193da85f (patch)
tree687dc5086fab0f4fc1a4f8b798740053b43d9c3e
parentc6651f91b8f31d94ef37aa41cc2fd76d97e990e2 (diff)
downloadQt-d0fa7d4b30fa34fe2a684c331213528c193da85f.zip
Qt-d0fa7d4b30fa34fe2a684c331213528c193da85f.tar.gz
Qt-d0fa7d4b30fa34fe2a684c331213528c193da85f.tar.bz2
Windows doesn't #define STD{IN,OUT,ERR}_FILENO
Reviewed-by: Markus Goetz
-rw-r--r--tests/auto/qfile/tst_qfile.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index bbb6280..4971762 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -79,6 +79,18 @@
# define SRCDIR ""
#endif
+#ifndef STDIN_FILENO
+#define STDIN_FILENO 0
+#endif
+
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO 1
+#endif
+
+#ifndef STDERR_FILENO
+#define STDERR_FILENO 2
+#endif
+
Q_DECLARE_METATYPE(QFile::FileError)
//TESTED_CLASS=