Builds for Haiku.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4584 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-26 02:56:33 +00:00
parent b695a4ba3b
commit 68f5827dee
7 changed files with 60 additions and 22 deletions

View File

@ -16,7 +16,7 @@
#include <stdlib.h>
#include <string.h>
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__HAIKU__)
#include <signal.h>
#include <sys/prctl.h>
#include <sys/resource.h>
@ -331,7 +331,7 @@ static void _tf_run_task_thread(void* data)
#if !TARGET_OS_IPHONE
static void _shed_privileges()
{
#if !defined(_WIN32)
#if !defined(_WIN32) && !defined(__HAIKU__)
struct rlimit zeroLimit;
zeroLimit.rlim_cur = 0;
zeroLimit.rlim_max = 0;
@ -484,7 +484,7 @@ static int _tf_command_sandbox(const char* file, int argc, char* argv[])
return 2;
}
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__HAIKU__)
prctl(PR_SET_PDEATHSIG, SIGHUP);
#endif
tf_task_t* task = tf_task_create();
@ -607,7 +607,7 @@ static void _startup(int argc, char* argv[])
_backtrace_error,
NULL);
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__HAIKU__)
prctl(PR_SET_PDEATHSIG, SIGKILL);
#endif
tf_mem_replace_uv_allocator();