From: Arun Persaud Date: Mon, 4 Apr 2011 03:23:49 +0000 (-0700) Subject: check if malloc.h is present before including it X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=ee432318a4abcbe20b1bf9300a791e0f257d08ee check if malloc.h is present before including it OS X 10.6 doesn't have malloc.h, so it complained. --- diff --git a/engineoutput.c b/engineoutput.c index 00859bf..8509f1a 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -28,7 +28,10 @@ #include "config.h" #include + +#if HAVE_MALLOC_H #include +#endif #if STDC_HEADERS # include diff --git a/history.c b/history.c index 109c9fb..b6c63ad 100644 --- a/history.c +++ b/history.c @@ -28,7 +28,9 @@ #include #include +#if HAVE_MALLOC_H #include +#endif #include #include "common.h"