diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 1d7609687..32b415a46 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-04-03 Ken Werner + + * libc/machine/spu/sys/linux_syscalls.h: include + (linux_getpid, linux_gettid): Declare. + 2009-04-03 Ken Werner * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU diff --git a/newlib/libc/machine/spu/sys/linux_syscalls.h b/newlib/libc/machine/spu/sys/linux_syscalls.h index b7a85fe3c..a02e89726 100644 --- a/newlib/libc/machine/spu/sys/linux_syscalls.h +++ b/newlib/libc/machine/spu/sys/linux_syscalls.h @@ -32,9 +32,8 @@ Author: Ken Werner #ifndef __LINUX_SYSCALLS_H #define __LINUX_SYSCALLS_H -#ifdef __cplusplus -extern "C" { -#endif + +#include /* The system call numbers. See kernel source file arch/powerpc/include/asm/unistd.h. */ @@ -294,9 +293,17 @@ struct spu_syscall_block unsigned long long parm[6]; /* System call arguments. */ }; +#ifdef __cplusplus +extern "C" { +#endif + /* Issues a Linux system call. */ int __linux_syscall (struct spu_syscall_block *s); +/* Linux system calls. */ +pid_t linux_getpid(void); +pid_t linux_gettid(void); + #ifdef __cplusplus } #endif