summaryrefslogtreecommitdiffstats
path: root/libmapper/workaround
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-11-15 11:13:37 -0600
committerMatthew Barth <msbarth@us.ibm.com>2016-11-23 10:47:38 -0600
commitc6329c9c41f6735b546eecfd6941b1f3381f230a (patch)
treec741214c1d0ed88a3ce85f76b7c9b98a91fbc0f7 /libmapper/workaround
parentf1d7c6e0512d04c520201f3b98d01a7e2a5c8fb5 (diff)
downloadphosphor-objmgr-c6329c9c41f6735b546eecfd6941b1f3381f230a.tar.gz
phosphor-objmgr-c6329c9c41f6735b546eecfd6941b1f3381f230a.zip
Workaround sd_bus_message_append_cmdline
Unable to get libmapper built without systemd being patched with the sd_bus_message_append_cmdline function. Until it is pushed upstream, this is a workaround to get the available systemd install built for unit testing. Change-Id: Ieca78955a4182eebd469a860c37ccaedfe75d323 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'libmapper/workaround')
-rw-r--r--libmapper/workaround/systemd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmapper/workaround/systemd.h b/libmapper/workaround/systemd.h
new file mode 100644
index 0000000..1b32753
--- /dev/null
+++ b/libmapper/workaround/systemd.h
@@ -0,0 +1,6 @@
+#ifdef IS_UNPATCHED_SYSTEMD
+#include <systemd/sd-bus.h>
+
+int sd_bus_message_append_cmdline(sd_bus_message *m, const char *signature,
+ char ***x) { return 0; }
+#endif
OpenPOWER on IntegriCloud