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