chiark / gitweb /
sd-daemon.c: allow use of -lrt to be avoided
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Apr 2013 12:35:22 +0000 (13:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2013 11:54:31 +0000 (13:54 +0200)
commit9735bd12ab7668cc1b7b518299797b101f16bd58
treea46a568f986c7292466eef1ae84991f516c350b9
parent23e97f7d9274b90fb0e1664945dc6259fdae6d39
sd-daemon.c: allow use of -lrt to be avoided

In recent glibc, many commonly-used librt functions have moved
from librt to libc. This results in dbus' configure.ac
concluding that we don't need to link in librt. However,
sd-daemon.c needs it for mq_getattr(), causing the build
to fail.

dbus doesn't use POSIX message queues, so I'd prefer to be
able to avoid "if on Linux, link librt for sd-daemon.c".
src/libsystemd-daemon/sd-daemon.c