From 6df3fdd83f8d249622f606068bb3d8068113983a Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Thu, 20 Jan 2022 20:58:32 +0100 Subject: [PATCH] LibCore: Use generic AK_OS_BSD_GENERIC to hide Group::add_group() This hides the method Group::add_group() on both MacOS and OpenBSD since the function putgrent(), which is essential for add_group() to work, is not available on these OSes. --- Userland/Libraries/LibCore/Group.cpp | 2 +- Userland/Libraries/LibCore/Group.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibCore/Group.cpp b/Userland/Libraries/LibCore/Group.cpp index 586dca33e1..585c32af09 100644 --- a/Userland/Libraries/LibCore/Group.cpp +++ b/Userland/Libraries/LibCore/Group.cpp @@ -10,7 +10,7 @@ namespace Core { -#ifndef AK_OS_MACOS +#ifndef AK_OS_BSD_GENERIC ErrorOr Group::add_group(Group& group) { if (group.name().is_empty()) diff --git a/Userland/Libraries/LibCore/Group.h b/Userland/Libraries/LibCore/Group.h index 8cd4602984..3eeb6c99c4 100644 --- a/Userland/Libraries/LibCore/Group.h +++ b/Userland/Libraries/LibCore/Group.h @@ -15,7 +15,7 @@ namespace Core { class Group { public: -#ifndef AK_OS_MACOS +#ifndef AK_OS_BSD_GENERIC static ErrorOr add_group(Group& group); #endif