diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-10-08 21:39:34 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 19:57:07 -0800 |
commit | a6a8a06dd5d23cf649b9242d3a03a97cba31aef7 (patch) | |
tree | b5521b42801ce3787f3eb627dee3dcb73f9922a7 | |
parent | 177aaa1b0142572ccd148dcdc305c6a46e1bc6bc (diff) | |
download | libmthca-a6a8a06dd5d23cf649b9242d3a03a97cba31aef7.tar.gz |
Fix build without Valgrind
Add stub definition of VALGRIND_MAKE_MEM_UNDEFINED() too, so that
libmthca compiles without Valgrind.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/mthca.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mthca.h b/src/mthca.h index 5def965..435d483 100644 --- a/src/mthca.h +++ b/src/mthca.h @@ -45,8 +45,8 @@ # include <valgrind/memcheck.h> -# ifndef VALGRIND_MAKE_MEM_DEFINED -# warning "Valgrind support requested, but VALGRIND_MAKE_MEM_DEFINED not available" +# if !defined(VALGRIND_MAKE_MEM_DEFINED) || !defined(VALGRIND_MAKE_MEM_UNDEFINED) +# warning "Valgrind support requested, but VALGRIND_MAKE_MEM_(UN)DEFINED not available" # endif #endif /* HAVE_VALGRIND_MEMCHECK_H */ @@ -55,6 +55,10 @@ # define VALGRIND_MAKE_MEM_DEFINED(addr,len) #endif +#ifndef VALGRIND_MAKE_MEM_UNDEFINED +# define VALGRIND_MAKE_MEM_UNDEFINED(addr,len) +#endif + #define HIDDEN __attribute__((visibility ("hidden"))) #define PFX "mthca: " |