[PATCH] uml: include tidying
[deliverable/linux.git] / arch / um / os-Linux / process.c
index ff203625a4bd9afb44ddc1c918a79df2dbc3d608..c692a192957a80775f98097ee47d7b0d73dc6b12 100644 (file)
@@ -7,10 +7,10 @@
 #include <stdio.h>
 #include <errno.h>
 #include <signal.h>
-#include <linux/unistd.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/mman.h>
+#include <sys/syscall.h>
 #include "ptrace_user.h"
 #include "os.h"
 #include "user.h"
@@ -140,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)
This page took 0.024824 seconds and 5 git commands to generate.