1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 14:55:26 +03:00

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

This commit is contained in:
Lennart Poettering 2013-04-12 02:21:57 +02:00
parent 7211f918ba
commit beca33eef4

View File

@ -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)