mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibCore: Add support for compiling for Android with API Version >= 30
Most changes are around user and group management, which are exposed in the Android NDK differently than other Unices. We require version 30 for memfd_create, version 28 for posix_spawn, and so on. It's possible a shim for memfd_create could be used, but since Google is mandating new apps use API level 30 as of Nov 2022, this seems suitable.
This commit is contained in:
parent
3b15addbc8
commit
d84fc60f96
5 changed files with 16 additions and 10 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
#if !defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_ANDROID)
|
||||
ErrorOr<void> Group::add_group(Group& group)
|
||||
{
|
||||
if (group.name().is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue