summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-22 20:18:21 +0200
committerJoão Abecasis <joao@abecasis.name>2009-10-23 15:05:08 +0200
commitd0fa7d4b30fa34fe2a684c331213528c193da85f (patch)
tree687dc5086fab0f4fc1a4f8b798740053b43d9c3e /tests
parentc6651f91b8f31d94ef37aa41cc2fd76d97e990e2 (diff)
Windows doesn't #define STD{IN,OUT,ERR}_FILENO
Reviewed-by: Markus Goetz
Diffstat (limited to 'tests')
-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 bbb62805b0..4971762631 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=