From 2bbeaec916b70c65676db142151eafa3c5b01282 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 27 Sep 2024 12:38:18 +0200 Subject: [PATCH] Fix build on Mac with -DICINGA2_UNITY_BUILD=OFF -DICINGA2_WITH_LIVESTATUS=ON error: no matching function for call to 'intrusive_ptr_release' ... candidate function not viable: cannot convert argument of incomplete type 'icinga::Notification *' to 'Object *' for 1st argument void intrusive_ptr_release(Object *object); --- lib/icinga/notification.hpp | 3 ++- lib/icinga/usergroup.hpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/icinga/notification.hpp b/lib/icinga/notification.hpp index 1b6cbedb133..8c5a5f4b18c 100644 --- a/lib/icinga/notification.hpp +++ b/lib/icinga/notification.hpp @@ -55,6 +55,7 @@ class ApplyRule; struct ScriptFrame; class Host; class Service; +class UserGroup; /** * An Icinga notification specification. @@ -73,7 +74,7 @@ class Notification final : public ObjectImpl intrusive_ptr GetCommand() const; TimePeriod::Ptr GetPeriod() const; std::set GetUsers() const; - std::set GetUserGroups() const; + std::set> GetUserGroups() const; void UpdateNotificationNumber(); void ResetNotificationNumber(); diff --git a/lib/icinga/usergroup.hpp b/lib/icinga/usergroup.hpp index c6f82a131ba..3435f6c16c5 100644 --- a/lib/icinga/usergroup.hpp +++ b/lib/icinga/usergroup.hpp @@ -4,6 +4,7 @@ #define USERGROUP_H #include "icinga/i2-icinga.hpp" +#include "icinga/notification.hpp" #include "icinga/usergroup-ti.hpp" #include "icinga/user.hpp"