worked on premove bug
[xboard.git] / uci.c
diff --git a/uci.c b/uci.c
index f02507f..d0f76c4 100644 (file)
--- a/uci.c
+++ b/uci.c
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <malloc.h>
+
+#if HAVE_MALLOC_H
+  #include <malloc.h>
+#endif
 
 #ifdef WIN32
 // [HGM] this was probably a Windows-specific constant. Needs to be defined here now I