From: Arun Persaud Date: Wed, 6 Apr 2011 06:24:24 +0000 (-0700) Subject: removed check and #includes for malloc.h, since it's not needed X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7b1579c574c06f880cc6c01874416dde0374aab6;p=xboard.git removed check and #includes for malloc.h, since it's not needed hopefully this doesn't break things on non-linux systems. OS X seems to be ok, not sure about others ;) --- diff --git a/configure.ac b/configure.ac index 2c622ae..9dfa39d 100644 --- a/configure.ac +++ b/configure.ac @@ -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)) diff --git a/engineoutput.c b/engineoutput.c index 8509f1a..7dc403e 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -29,10 +29,6 @@ #include -#if HAVE_MALLOC_H -#include -#endif - #if STDC_HEADERS # include # include diff --git a/history.c b/history.c index b6c63ad..6773133 100644 --- a/history.c +++ b/history.c @@ -28,9 +28,6 @@ #include #include -#if HAVE_MALLOC_H -#include -#endif #include #include "common.h" diff --git a/uci.c b/uci.c index ab2cea9..f78fb2c 100644 --- a/uci.c +++ b/uci.c @@ -26,10 +26,6 @@ #include #include -#if HAVE_MALLOC_H - #include -#endif - #include "common.h" #include "backend.h" Boolean GetArgValue(char *a);