[systemd-commits] src/libsystemd-bus
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Apr 11 17:22:57 PDT 2013
src/libsystemd-bus/bus-kernel.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit beca33eef46f5050969b0ec58c8477a9f729840a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Apr 12 02:21:57 2013 +0200
bus: make sure things still compile fine without valgrind's headers installed
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index ed4e189..add0bc1 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)
More information about the systemd-commits
mailing list