diff --git a/libprocessgroup/task_profiles.cpp b/libprocessgroup/task_profiles.cpp index 74ba7f61a..7fe984bae 100644 --- a/libprocessgroup/task_profiles.cpp +++ b/libprocessgroup/task_profiles.cpp @@ -183,6 +183,12 @@ bool SetTimerSlackAction::ExecuteForTask(int tid) const { return true; } +#else + +bool SetTimerSlackAction::ExecuteForTask(int) const { + return true; +}; + #endif bool SetAttributeAction::ExecuteForProcess(uid_t, pid_t pid) const { diff --git a/libprocessgroup/task_profiles.h b/libprocessgroup/task_profiles.h index 1aaa196ba..2b2eda009 100644 --- a/libprocessgroup/task_profiles.h +++ b/libprocessgroup/task_profiles.h @@ -73,9 +73,6 @@ class SetClampsAction : public ProfileAction { int clamp_; }; -// To avoid issues in sdk_mac build -#if defined(__ANDROID__) - class SetTimerSlackAction : public ProfileAction { public: SetTimerSlackAction(unsigned long slack) noexcept : slack_(slack) {} @@ -88,17 +85,6 @@ class SetTimerSlackAction : public ProfileAction { static bool IsTimerSlackSupported(int tid); }; -#else - -class SetTimerSlackAction : public ProfileAction { - public: - SetTimerSlackAction(unsigned long) noexcept {} - - virtual bool ExecuteForTask(int) const { return true; } -}; - -#endif - // Set attribute profile element class SetAttributeAction : public ProfileAction { public: