worked on premove bug
[xboard.git] / uci.c
diff --git a/uci.c b/uci.c
index fe380ec..d0f76c4 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -3,6 +3,8 @@
  *
  * Author: Alessandro Scotti (Jan 2006)
  *
+ * Copyright 2006 Alessandro Scotti
+ *
  * ------------------------------------------------------------------------
  *
  * GNU XBoard is free software: you can redistribute it and/or modify
  */
 #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