diff --git a/Common/VertexArray.cpp b/Common/VertexArray.cpp
index c0284877f9e4532c936a36fd34d4c23920c14aa9..e125aff23f382d5361638d42c08d01225a859c26 100644
--- a/Common/VertexArray.cpp
+++ b/Common/VertexArray.cpp
@@ -3,6 +3,7 @@
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to <gmsh@geuz.org>.
 
+#include <string.h>
 #include <algorithm>
 #include "GmshMessage.h"
 #include "VertexArray.h"