Commit beca33ee authored by Lennart Poettering's avatar Lennart Poettering

bus: make sure things still compile fine without valgrind's headers installed

parent 7211f918
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment