File rtkit-use-system-sd-daemon.patch of Package rtkit

diff --git a/Makefile.am b/Makefile.am
index febc355..611cf14 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -56,13 +56,16 @@ systemdsystemunit_DATA = \
 endif
 
 rtkit_daemon_SOURCES = \
-	rtkit-daemon.c rtkit.h \
-	sd-daemon.c sd-daemon.h
+	rtkit-daemon.c rtkit.h
+
 rtkit_daemon_LDADD = \
-	$(DBUS_LIBS)
+	$(DBUS_LIBS) \
+	$(SD_DAEMON_LIBS)
+
 rtkit_daemon_CFLAGS = \
 	$(AM_CFLAGS) \
-	$(DBUS_CFLAGS)
+	$(DBUS_CFLAGS) \
+	$(SD_DAEMON_CFLAGS)
 
 rtkitctl_SOURCES = \
 	rtkitctl.c rtkit.h
diff --git a/configure.ac b/configure.ac
index 5a77363..2806def 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,6 +115,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([cap_init], [cap])
 
 PKG_CHECK_MODULES(DBUS, dbus-1)
+PKG_CHECK_MODULES([SD_DAEMON], libsystemd-daemon)
 
 AC_ARG_WITH([systemdsystemunitdir],
         AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
openSUSE Build Service is sponsored by