check if malloc.h is present before including it
[xboard.git] / history.c
index 109c9fb..b6c63ad 100644 (file)
--- a/history.c
+++ b/history.c
@@ -28,7 +28,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#if HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <string.h>
 
 #include "common.h"