mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +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
|
@ -15,7 +15,7 @@ namespace Core {
|
|||
|
||||
class Group {
|
||||
public:
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
#if !defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_ANDROID)
|
||||
static ErrorOr<void> add_group(Group& group);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue