From 190e31d9e5c632b7f756efb8851dd9ef14b2d97d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 22 Aug 2009 18:10:57 -0700 Subject: [PATCH] added check for malloc.h this should fix a build error on OS X --- configure.ac | 2 +- uci.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 1.7.0.4