From 9ce08d170e67e642aa9388ea53a4aac4c0b6f9fe Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 20 Jan 2006 23:27:30 +0000 Subject: fix building on alpha --- libc/sysdeps/linux/common/getppid.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/getppid.c b/libc/sysdeps/linux/common/getppid.c index b2944e5e0..81d613bb9 100644 --- a/libc/sysdeps/linux/common/getppid.c +++ b/libc/sysdeps/linux/common/getppid.c @@ -2,18 +2,19 @@ /* * getppid() for uClibc * - * Copyright (C) 2000-2004 by Erik Andersen + * Copyright (C) 2000-2006 by Erik Andersen * * GNU Library General Public License (LGPL) version 2 or later. */ #include "syscalls.h" -# include -# ifdef __NR_getppid +#include +#ifdef __NR_getppid _syscall0(pid_t, getppid); -# else +#else +libc_hidden_proto(getpid) pid_t getppid(void) { - return (__getpid()); + return getpid(); } -# endif +#endif -- cgit v1.2.3