From 43b1cfeca529918cb01fc07309c9bae7c1ad3630 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 6 Apr 2009 22:04:33 +0000 Subject: [PATCH] 2009-04-06 Ken Werner * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu. * libc/include/machine/time.h (nanosleep): Declare. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/machine/time.h | 5 +++++ newlib/libc/include/sys/features.h | 5 ----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 8be81c377..4de7d55de 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-04-06 Ken Werner + + * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu. + * libc/include/machine/time.h (nanosleep): Declare. + 2009-04-06 Corinna Vinschen * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP. diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h index 0caf12655..a296857d4 100644 --- a/newlib/libc/include/machine/time.h +++ b/newlib/libc/include/machine/time.h @@ -9,6 +9,11 @@ #endif #endif /* !__rtems__ */ +#ifdef __SPU__ +#include +int nanosleep (const struct timespec *, struct timespec *); +#endif + #endif /* _MACHTIME_H_ */ diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index 1159dfdd5..866044f60 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -170,11 +170,6 @@ extern "C" { #endif /* !__STRICT_ANSI__ || __cplusplus || __STDC_VERSION__ >= 199901L */ #endif /* __CYGWIN__ */ -#ifdef __SPU__ -/* Not much for now! */ -#define _POSIX_TIMERS 1 -#endif - #ifdef __cplusplus } #endif