Skip to content

Commit

Permalink
Fix compilation without systemd support
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jul 4, 2023
1 parent f7b3816 commit 218037a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions syncthingwidgets/misc/internalerror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ namespace QtGui {
/*!
* \brief Returns whether to ignore inavailability after start or standby-wakeup.
*/
static bool ignoreInavailabilityAfterStart(
const Settings::Settings &settings, const SyncthingLauncher *launcher, const SyncthingService *service, const QString &message, int networkError)
static bool ignoreInavailabilityAfterStart(const Settings::Settings &settings, const SyncthingLauncher *launcher,
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
const SyncthingService *service,
#endif
const QString &message, int networkError)
{
if (!settings.ignoreInavailabilityAfterStart) {
return false;
Expand Down Expand Up @@ -97,6 +100,10 @@ bool InternalError::isRelevant(const SyncthingConnection &connection, SyncthingE
}
#endif

return !ignoreInavailabilityAfterStart(settings, launcher, service, message, networkError);
return !ignoreInavailabilityAfterStart(settings, launcher,
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
service,
#endif
message, networkError);
}
} // namespace QtGui

0 comments on commit 218037a

Please sign in to comment.