removed check and #includes for malloc.h, since it's not needed
authorArun Persaud <apersaud@lbl.gov>
Wed, 6 Apr 2011 06:24:24 +0000 (23:24 -0700)
committerArun Persaud <apersaud@lbl.gov>
Wed, 6 Apr 2011 06:24:24 +0000 (23:24 -0700)
hopefully this doesn't break things on non-linux systems. OS X seems to be ok, not sure about others ;)

configure.ac
engineoutput.c
history.c
uci.c

index 2c622ae..9dfa39d 100644 (file)
@@ -92,7 +92,7 @@ AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 AC_HEADER_DIRENT
 AC_TYPE_SIGNAL
-AC_CHECK_HEADERS(stropts.h sys/time.h string.h unistd.h sys/systeminfo.h malloc.h)
+AC_CHECK_HEADERS(stropts.h sys/time.h string.h unistd.h sys/systeminfo.h)
 AC_CHECK_HEADERS(fcntl.h sys/fcntl.h, break)
 AC_CHECK_HEADERS(sys/socket.h lan/socket.h, break)
 AC_CHECK_HEADER(stddef.h, [], AC_DEFINE(X_WCHAR, 1))
index 8509f1a..7dc403e 100644 (file)
 
 #include <stdio.h>
 
-#if HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
 #if STDC_HEADERS
 # include <stdlib.h>
 # include <string.h>
index b6c63ad..6773133 100644 (file)
--- a/history.c
+++ b/history.c
@@ -28,9 +28,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#if HAVE_MALLOC_H
-#include <malloc.h>
-#endif
 #include <string.h>
 
 #include "common.h"
diff --git a/uci.c b/uci.c
index ab2cea9..f78fb2c 100644 (file)
--- a/uci.c
+++ b/uci.c
 #include <stdlib.h>
 #include <string.h>
 
-#if HAVE_MALLOC_H
-  #include <malloc.h>
-#endif
-
 #include "common.h"
 #include "backend.h"
 Boolean GetArgValue(char *a);