Fix compilation without systemd support

This commit is contained in:
Martchus 2022-10-24 15:37:53 +02:00
parent 8e484f246e
commit 328417d1f3
1 changed files with 2 additions and 0 deletions

View File

@ -551,9 +551,11 @@ void Settings::apply(SyncthingNotifier &notifier) const
if (launcher.considerForReconnect) {
integrations |= SyncthingStartupIntegration::Process;
}
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
if (systemd.considerForReconnect) {
integrations |= SyncthingStartupIntegration::Service;
}
#endif
notifier.setEnabledNotifications(notifications);
notifier.setConsideredIntegrations(integrations);
notifier.setIgnoreInavailabilityAfterStart(ignoreInavailabilityAfterStart);