--- ./src/tools/moc/generator.cpp.orig	2022-02-23 14:49:23.798263647 +0530
+++ ./src/tools/moc/generator.cpp	2022-02-23 14:49:44.558263639 +0530
@@ -43,6 +43,8 @@
 #include <math.h>
 #include <stdio.h>
 
+#include <limits>
+
 #include <private/qmetaobject_p.h> //for the flags.
 #include <private/qplugin_p.h> //for the flags.
 
