diff --git a/src/editor/edmap.cpp b/src/editor/edmap.cpp
index 6aea38a14..ab1b6d5c9 100644
--- a/src/editor/edmap.cpp
+++ b/src/editor/edmap.cpp
@@ -30,6 +30,8 @@
 ----------------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <limits.h>
 
 #include "freecraft.h"