1--- a/chess.h 2+++ b/chess.h 3@@ -25,7 +25,7 @@ 4 #include <assert.h> 5 #include <stdlib.h> 6 #if !defined(IPHONE) 7-# include <malloc.h> 8+# include <sys/malloc.h> 9 #endif 10 #include <string.h> 11 #if !defined(TYPES_INCLUDED)