diff --git a/Fltk/gmshLocalNetworkClient.h b/Fltk/gmshLocalNetworkClient.h
index 0f732409b08fac0a968006089dfc47f37f49735c..3af68cfb6a3504d175a13656033665fed26e8f5b 100644
--- a/Fltk/gmshLocalNetworkClient.h
+++ b/Fltk/gmshLocalNetworkClient.h
@@ -7,6 +7,7 @@
 #define _GMSH_LOCAL_NETWORK_CLIENT_H_
 
 #include <vector>
+#include <algorithm>
 #include "onelab.h"
 
 class gmshLocalNetworkClient : public onelab::localNetworkClient{