From: Arun Persaud Date: Sun, 23 Aug 2009 01:10:57 +0000 (-0700) Subject: added check for malloc.h X-Git-Tag: v4.4.0.beta2~18 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=190e31d9e5c632b7f756efb8851dd9ef14b2d97d;hp=3512e2a362ede1907c75f89e3d6f5945414b46a5;p=xboard.git added check for malloc.h this should fix a build error on OS X --- diff --git a/configure.ac b/configure.ac index 87f71b2..d7e3f25 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,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) +AC_CHECK_HEADERS(stropts.h sys/time.h string.h unistd.h sys/systeminfo.h malloc.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/uci.c b/uci.c index f02507f..d0f76c4 100644 --- a/uci.c +++ b/uci.c @@ -24,7 +24,10 @@ */ #include #include -#include + +#if HAVE_MALLOC_H + #include +#endif #ifdef WIN32 // [HGM] this was probably a Windows-specific constant. Needs to be defined here now I