AcessNative - Fixing for recent kernel changes
[tpg/acess2.git] / AcessNative / ld-acess_src / syscalls.c
index c8348f5..3c691aa 100644 (file)
@@ -8,6 +8,7 @@
 #include <stdarg.h>
 #include <string.h>
 #include <stddef.h>
+#include <unistd.h>
 #include "request.h"
 
 #define DEBUG(str, x...)       Debug(str, x)
@@ -316,3 +317,11 @@ uint64_t native_tell(int FD)
 {
        return ftell( gaSyscall_LocalFPs[FD] );
 }
+
+int native_execve(const char *filename, char *const argv[], char *const envp[])
+{
+       int ret;
+       ret = execve(filename, argv, envp);
+       perror("native_execve");
+       return ret;
+}

UCC git Repository :: git.ucc.asn.au