git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ccan: Fix failtest on Fedora 16 as stdlib.h does not imply malloc.h
[vlendec/samba-autobuild/.git]
/
lib
/
ccan
/
failtest
/
failtest_override.h
diff --git
a/lib/ccan/failtest/failtest_override.h
b/lib/ccan/failtest/failtest_override.h
index b056d538d482d31216b4dab492cb50fae5d9d7fd..7d03188ea94e7ffc335685bcc655e58f6dd4cb1e 100644
(file)
--- a/
lib/ccan/failtest/failtest_override.h
+++ b/
lib/ccan/failtest/failtest_override.h
@@
-10,6
+10,10
@@
/* 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__)