summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-12 02:21:57 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-12 02:21:57 +0200
commitbeca33eef46f5050969b0ec58c8477a9f729840a (patch)
treec70b8ef91d24af1c489c8a5d13be7ed0c401f220 /src/libsystemd-bus/bus-kernel.c
parent7211f918ba2b86e0041413b47d51d7593e73cf5d (diff)
bus: make sure things still compile fine without valgrind's headers installed
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd-bus/bus-kernel.c2
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)