This compiles on macos for x86_64, at least.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4485 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-04 23:20:57 +00:00
parent 6302565942
commit 31af27529e
5 changed files with 69 additions and 17 deletions

View File

@ -16,10 +16,13 @@
#include <stdlib.h>
#include <string.h>
#if !defined(_WIN32) && !defined(__MACH__)
#if !defined(_WIN32) && !defined(__APPLE__)
#include <signal.h>
#include <sys/prctl.h>
#include <sys/resource.h>
#endif
#if !defined(_WIN32)
#include <unistd.h>
#endif
@ -471,7 +474,7 @@ static int _tf_command_sandbox(const char* file, int argc, char* argv[])
return 2;
}
#if !defined(_WIN32) && !defined(__MACH__)
#if !defined(_WIN32) && !defined(__APPLE__)
prctl(PR_SET_PDEATHSIG, SIGHUP);
#endif
tf_task_t* task = tf_task_create();
@ -591,7 +594,7 @@ int main(int argc, char* argv[])
_backtrace_error,
NULL);
#if !defined(_WIN32)
#if !defined(_WIN32) && !defined(__APPLE__)
prctl(PR_SET_PDEATHSIG, SIGKILL);
#endif
tf_mem_replace_uv_allocator();