mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
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.
This commit is contained in:
parent
d67c70d043
commit
6df3fdd83f
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
#ifndef AK_OS_MACOS
|
#ifndef AK_OS_BSD_GENERIC
|
||||||
ErrorOr<void> Group::add_group(Group& group)
|
ErrorOr<void> Group::add_group(Group& group)
|
||||||
{
|
{
|
||||||
if (group.name().is_empty())
|
if (group.name().is_empty())
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Core {
|
||||||
|
|
||||||
class Group {
|
class Group {
|
||||||
public:
|
public:
|
||||||
#ifndef AK_OS_MACOS
|
#ifndef AK_OS_BSD_GENERIC
|
||||||
static ErrorOr<void> add_group(Group& group);
|
static ErrorOr<void> add_group(Group& group);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue