mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
Everywhere: Add support for compilation under emscripten
Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
parent
84502f53b5
commit
2110e7cf85
Notes:
sideshowbarker
2024-07-17 04:05:42 +09:00
Author: https://github.com/alimpfard
Commit: 2110e7cf85
Pull-request: https://github.com/SerenityOS/serenity/pull/16133
Reviewed-by: https://github.com/ADKaster ✅
9 changed files with 50 additions and 16 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef AK_OS_MACOS
|
||||
#if !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN)
|
||||
# include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
|
@ -38,7 +38,7 @@ bool Crash::run(RunType run_type)
|
|||
perror("fork");
|
||||
VERIFY_NOT_REACHED();
|
||||
} else if (pid == 0) {
|
||||
#ifndef AK_OS_MACOS
|
||||
#if !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN)
|
||||
if (prctl(PR_SET_DUMPABLE, 0, 0) < 0)
|
||||
perror("prctl(PR_SET_DUMPABLE)");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue