~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aaccf4
)
base/ct-test.in: Don't call Valgrind macros unless we found the headers.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 Oct 2017 12:47:24 +0000
(13:47 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 Oct 2017 12:48:36 +0000
(13:48 +0100)
Oops.
base/ct-test.c
patch
|
blob
|
blame
|
history
diff --git
a/base/ct-test.c
b/base/ct-test.c
index
b4cddc6
..
e0f62e5
100644
(file)
--- a/
base/ct-test.c
+++ b/
base/ct-test.c
@@
-57,7
+57,11
@@
*/
void ct_poison(const void *p, size_t sz)
- { VALGRIND_MAKE_MEM_UNDEFINED(p, sz); }
+{
+#ifdef HAVE_VALGRIND_H
+ VALGRIND_MAKE_MEM_UNDEFINED(p, sz);
+#endif
+}
/* --- @ct_remedy@ --- *
*
@@
-74,6
+78,10
@@
void ct_poison(const void *p, size_t sz)
*/
void ct_remedy(const void *p, size_t sz)
- { VALGRIND_MAKE_MEM_DEFINED(p, sz); }
+{
+#ifdef HAVE_VALGRIND_H
+ VALGRIND_MAKE_MEM_DEFINED(p, sz);
+#endif
+}
/*----- That's all, folks -------------------------------------------------*/