From ee432318a4abcbe20b1bf9300a791e0f257d08ee Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 3 Apr 2011 20:23:49 -0700 Subject: [PATCH] check if malloc.h is present before including it OS X 10.6 doesn't have malloc.h, so it complained. --- engineoutput.c | 3 +++ history.c | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) 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" -- 1.7.0.4