5435942
diff --git a/src/qml/jsruntime/qv4regexp.cpp b/src/qml/jsruntime/qv4regexp.cpp
5435942
index 76daead8..4f707703 100644
5435942
--- a/src/qml/jsruntime/qv4regexp.cpp
5435942
+++ b/src/qml/jsruntime/qv4regexp.cpp
5435942
@@ -37,6 +37,7 @@
5435942
 **
5435942
 ****************************************************************************/
5435942
 
5435942
+#include <limits>
5435942
 #include "qv4regexp_p.h"
5435942
 #include "qv4engine_p.h"
5435942
 #include "qv4scopedvalue_p.h"
5435942
diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h
5435942
index a7e37d19..21c3b465 100644
5435942
--- a/src/qmldebug/qqmlprofilerevent_p.h
5435942
+++ b/src/qmldebug/qqmlprofilerevent_p.h
5435942
@@ -40,6 +40,8 @@
5435942
 #ifndef QQMLPROFILEREVENT_P_H
5435942
 #define QQMLPROFILEREVENT_P_H
5435942
 
5435942
+#include <limits>
5435942
+
5435942
 #include "qqmlprofilerclientdefinitions_p.h"
5435942
 
5435942
 #include <QtCore/qstring.h>