diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2022-01-20 20:58:32 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-21 18:34:24 +0100 |
commit | 6df3fdd83f8d249622f606068bb3d8068113983a (patch) | |
tree | b80a82bfccf9b3ec55f7798fedaa80e7b3352cab | |
parent | d67c70d0435c34a38bb03bc3225c765d81b7136d (diff) | |
download | serenity-6df3fdd83f8d249622f606068bb3d8068113983a.zip |
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.
-rw-r--r-- | Userland/Libraries/LibCore/Group.cpp | 2 | ||||
-rw-r--r-- | 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<void> 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<void> add_group(Group& group); #endif |