ccan: Fix failtest on Fedora 16 as stdlib.h does not imply malloc.h
[vlendec/samba-autobuild/.git] / lib / ccan / failtest / failtest_override.h
index b056d538d482d31216b4dab492cb50fae5d9d7fd..7d03188ea94e7ffc335685bcc655e58f6dd4cb1e 100644 (file)
 /* Replacement of allocators. */
 #include <stdlib.h>
 
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
 #undef calloc
 #define calloc(nmemb, size)    \
        failtest_calloc((nmemb), (size), __FILE__, __LINE__)