diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-05 03:17:11 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-01-09 03:23:30 +0100 |
commit | 43aa2c34a65b64370635ac447994f99e7d410890 (patch) | |
tree | 3aa4b20be7150789c490076be48dc3b2e42cc60f /arch/um/os-Linux/process.c | |
parent | 614818937a458c7db7a34213f4f8084a64586f41 (diff) |
fix the UML compilation
Based on patches from Linus' tree.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'arch/um/os-Linux/process.c')
-rw-r--r-- | arch/um/os-Linux/process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index d261888f39c4..a0afd106f41e 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c @@ -11,6 +11,7 @@ #include <linux/unistd.h> #include <sys/mman.h> #include <sys/wait.h> +#include <sys/syscall.h> #include "ptrace_user.h" #include "os.h" #include "user.h" @@ -139,11 +140,9 @@ void os_usr1_process(int pid) * syscalls, and also breaks with clone(), which does not unshare the TLS. */ -inline _syscall0(pid_t, getpid) - int os_getpid(void) { - return(getpid()); + return(syscall(__NR_getpid)); } int os_getpgrp(void) |