svn commit: trunk/uClibc/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Fri Jan 20 23:27:31 UTC 2006
Author: vapier
Date: 2006-01-20 15:27:30 -0800 (Fri, 20 Jan 2006)
New Revision: 13466
Log:
fix building on alpha
Modified:
trunk/uClibc/libc/sysdeps/linux/common/getppid.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/getppid.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/getppid.c 2006-01-20 23:20:36 UTC (rev 13465)
+++ trunk/uClibc/libc/sysdeps/linux/common/getppid.c 2006-01-20 23:27:30 UTC (rev 13466)
@@ -2,18 +2,19 @@
/*
* getppid() for uClibc
*
- * Copyright (C) 2000-2004 by Erik Andersen <andersen at codepoet.org>
+ * Copyright (C) 2000-2006 by Erik Andersen <andersen at codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
-# include <unistd.h>
-# ifdef __NR_getppid
+#include <unistd.h>
+#ifdef __NR_getppid
_syscall0(pid_t, getppid);
-# else
+#else
+libc_hidden_proto(getpid)
pid_t getppid(void)
{
- return (__getpid());
+ return getpid();
}
-# endif
+#endif
More information about the uClibc-cvs
mailing list