summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptecmadate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptecmadate.cpp')
-rw-r--r--src/script/qscriptecmadate.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/script/qscriptecmadate.cpp b/src/script/qscriptecmadate.cpp
index 9b53724..8c91a25 100644
--- a/src/script/qscriptecmadate.cpp
+++ b/src/script/qscriptecmadate.cpp
@@ -58,10 +58,14 @@
#include <math.h>
#ifndef Q_WS_WIN
-# include <time.h>
-# include <sys/time.h>
+# include <time.h>
+# ifndef Q_OS_VXWORKS
+# include <sys/time.h>
+# else
+# include "qplatformdefs.h"
+# endif
#else
-# include <windows.h>
+# include <windows.h>
#endif
QT_BEGIN_NAMESPACE