summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getppid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getppid.c')
-rw-r--r--libc/sysdeps/linux/common/getppid.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/getppid.c b/libc/sysdeps/linux/common/getppid.c
index 4f2b0e933..9d85661d9 100644
--- a/libc/sysdeps/linux/common/getppid.c
+++ b/libc/sysdeps/linux/common/getppid.c
@@ -9,11 +9,7 @@
#include <sys/syscall.h>
#include <unistd.h>
+
#ifdef __NR_getppid
-_syscall0(pid_t, getppid)
-#else
-pid_t getppid(void)
-{
- return getpid();
-}
+_syscall_noerr0(pid_t, getppid)
#endif