1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

LibCore: Stub out pledge and unveil for non-serenity systems

This commit is contained in:
Andrew Kaster 2022-07-04 10:03:31 -06:00 committed by Andreas Kling
parent 73742176a4
commit 30b626414d

View file

@ -47,6 +47,12 @@ ErrorOr<void> disown(pid_t pid);
ErrorOr<void> profiling_enable(pid_t, u64 event_mask);
ErrorOr<void> profiling_disable(pid_t);
ErrorOr<void> profiling_free_buffer(pid_t);
#else
inline ErrorOr<void> unveil(StringView, StringView)
{
return {};
}
inline ErrorOr<void> pledge(StringView, StringView = {}) { return {}; }
#endif
#ifndef AK_OS_BSD_GENERIC