From ea5022fcda9f45a80d8bef4e513d4a9689c61b48 Mon Sep 17 00:00:00 2001 From: Niklas Poslovski Date: Sat, 15 Jun 2024 20:00:36 +0200 Subject: [PATCH 3/9] LibTest: Don't include or use prctl on Haiku --- Userland/Libraries/LibTest/CrashTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibTest/CrashTest.cpp b/Userland/Libraries/LibTest/CrashTest.cpp index c0b1e272f0..34bc5c0f67 100644 --- a/Userland/Libraries/LibTest/CrashTest.cpp +++ b/Userland/Libraries/LibTest/CrashTest.cpp @@ -12,7 +12,7 @@ #include #include -#if !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN) && !defined(AK_OS_GNU_HURD) +#if !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN) && !defined(AK_OS_GNU_HURD) && !defined(AK_OS_HAIKU) # include #endif @@ -41,7 +41,7 @@ bool Crash::run(RunType run_type) #if defined(AK_OS_GNU_HURD) // When we crash, just kill the program, don't dump core. setenv("CRASHSERVER", "/servers/crash-kill", true); -#elif !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN) +#elif !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN) && !defined(AK_OS_HAIKU) if (prctl(PR_SET_DUMPABLE, 0, 0, 0) < 0) perror("prctl(PR_SET_DUMPABLE)"); #endif -- 2.43.2