From beca33eef46f5050969b0ec58c8477a9f729840a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Apr 2013 02:21:57 +0200 Subject: [PATCH] bus: make sure things still compile fine without valgrind's headers installed --- src/libsystemd-bus/bus-kernel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index ed4e189c3..add0bc11d 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) -- 2.30.2