chiark / gitweb /
bus: make sure things still compile fine without valgrind's headers installed
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Apr 2013 00:21:57 +0000 (02:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Apr 2013 00:21:57 +0000 (02:21 +0200)
src/libsystemd-bus/bus-kernel.c

index ed4e189c3ea92a249889c69cd3a0e832ce42a4a1..add0bc11d013c83fec98a8eaf79348e49f4e4e28 100644 (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)