diff --git a/src/objdef.cpp b/src/objdef.cpp
index bdf9c4dfc7bd9b7b38d8e2ab160728e510401c4b..465bea44c530898f805d90a209cc00afe0d3b879 100644
--- a/src/objdef.cpp
+++ b/src/objdef.cpp
@@ -17,9 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include <strings.h>
 #include "objdef.h"
 #include "util/numeric.h"
 #include "debug.h"
+#include "porting.h"
 #include "log.h"
 #include "gamedef.h"