summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-07-04 10:03:31 -0600
committerAndreas Kling <kling@serenityos.org>2022-07-06 14:24:23 +0200
commit30b626414d15f24a1ab487b61e33cdc2c793e891 (patch)
tree1e0c75f8c1b6c08ff3f4e5da7b86d6d4c947e775 /Userland/Libraries/LibCore
parent73742176a45fe7e754e054e4ff96e0a273f39624 (diff)
downloadserenity-30b626414d15f24a1ab487b61e33cdc2c793e891.zip
LibCore: Stub out pledge and unveil for non-serenity systems
Diffstat (limited to 'Userland/Libraries/LibCore')
-rw-r--r--Userland/Libraries/LibCore/System.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h
index 4e1009edd9..d9ca3f6402 100644
--- a/Userland/Libraries/LibCore/System.h
+++ b/Userland/Libraries/LibCore/System.h
@@ -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