[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 3/3] systemd: Guard the call to sd_notify() properly



Whether or not we call sd_notify() should depend on the
availability of the function itself, not of the library
that contains it.
---
 src/util/virsystemd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index b29418f..44409ca 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -480,7 +480,7 @@ int virSystemdTerminateMachine(const char *name)
 void
 virSystemdNotifyStartup(void)
 {
-#ifdef WITH_LIBSYSTEMD
+#ifdef HAVE_SD_NOTIFY
     sd_notify(0, "READY=1");
 #endif
 }
-- 
2.5.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]