diff --git a/tool/CommandFoeRead.cpp b/tool/CommandFoeRead.cpp
index e1d63e3a107260718bcdd77473cc8392b4cf343b..e42f8aa1ee0b2a59a0cbdd4bda4006c5ef3bb85b 100644
--- a/tool/CommandFoeRead.cpp
+++ b/tool/CommandFoeRead.cpp
@@ -4,6 +4,8 @@
  *
  ****************************************************************************/
 
+#include <string.h>
+
 #include <iostream>
 #include <iomanip>
 using namespace std;
diff --git a/tool/CommandFoeWrite.cpp b/tool/CommandFoeWrite.cpp
index 38a40196c39e06b99451e0e9a3c183e65ca57378..01c28e8cd0b20d8ec817e08af58071186dffe562 100644
--- a/tool/CommandFoeWrite.cpp
+++ b/tool/CommandFoeWrite.cpp
@@ -5,6 +5,7 @@
  ****************************************************************************/
 
 #include <libgen.h> // basename()
+#include <string.h>
 
 #include <iostream>
 #include <iomanip>