From bc38dc5127d6a8acd0f8c162b92464c4a21c05ee Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 5 Mar 2012 13:20:37 +0100 Subject: [PATCH] Added a stub for environ(3). --- libmaxsi/process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmaxsi/process.cpp b/libmaxsi/process.cpp index 79d7a53d..284e0e60 100644 --- a/libmaxsi/process.cpp +++ b/libmaxsi/process.cpp @@ -39,6 +39,8 @@ namespace Maxsi DEFN_SYSCALL0(pid_t, SysGetParentPID, SYSCALL_GETPPID); DEFN_SYSCALL3(pid_t, SysWait, SYSCALL_WAIT, pid_t, int*, int); + extern "C" char** environ = NULL; + void Abort() { // TODO: Send SIGABRT instead!