From 73818636e01de66d7a8d98072188a60284a00d00 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 11 Apr 2012 08:27:14 +1000 Subject: ccan: Fix failtest on Fedora 16 as stdlib.h does not imply malloc.h The issue is that there are two different sources of the malloc prototype, and they both need to be included otherwise the failtest overrides chokes on the headers. Andrew Bartlett --- lib/ccan/failtest/failtest_override.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ccan/failtest/failtest_override.h b/lib/ccan/failtest/failtest_override.h index b056d538d4..7d03188ea9 100644 --- a/lib/ccan/failtest/failtest_override.h +++ b/lib/ccan/failtest/failtest_override.h @@ -10,6 +10,10 @@ /* Replacement of allocators. */ #include +#ifdef HAVE_MALLOC_H +#include +#endif + #undef calloc #define calloc(nmemb, size) \ failtest_calloc((nmemb), (size), __FILE__, __LINE__) -- cgit