diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp
index c508b1dff144feebdac35a90eb0d225c07f432c5..59c96c84f67482982bdb17189c79c6c26b85f11d 100644
--- a/Common/GmshMessage.cpp
+++ b/Common/GmshMessage.cpp
@@ -5,6 +5,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <math.h>
 #include <string.h>
 #include <time.h>
 #include <sys/stat.h>