diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-12 02:21:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-12 02:21:57 +0200 |
commit | beca33eef46f5050969b0ec58c8477a9f729840a (patch) | |
tree | c70b8ef91d24af1c489c8a5d13be7ed0c401f220 | |
parent | 7211f918ba2b86e0041413b47d51d7593e73cf5d (diff) |
bus: make sure things still compile fine without valgrind's headers installed
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index ed4e189c3e..add0bc11d0 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -358,7 +358,9 @@ int bus_kernel_read_message(sd_bus *bus, sd_bus_message **m) { /* Let's tell valgrind that there's really no need to * initialize this fully. This should be removed again * when valgrind learned the kdbus ioctls natively. */ +#ifdef HAVE_VALGRIND_MEMCHECK_H VALGRIND_MAKE_MEM_DEFINED(k, sz); +#endif r = ioctl(bus->input_fd, KDBUS_CMD_MSG_RECV, bus->rbuffer); if (r >= 0) |