1
Fork 0
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:
Andrew Kaster 2022-07-11 01:06:29 -06:00 committed by Linus Groh
parent 3b15addbc8
commit d84fc60f96
5 changed files with 16 additions and 10 deletions

View file

@ -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())