diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-06 22:04:33 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-06 22:04:33 +0000 |
commit | 43b1cfeca529918cb01fc07309c9bae7c1ad3630 (patch) | |
tree | 5d999554915a6744eec3b91312e48777a4e4a5d0 /newlib | |
parent | 6af3d60df9649865ff4edae8ddcd8966021ef1f8 (diff) | |
download | newlib-43b1cfeca529918cb01fc07309c9bae7c1ad3630.zip newlib-43b1cfeca529918cb01fc07309c9bae7c1ad3630.tar.gz newlib-43b1cfeca529918cb01fc07309c9bae7c1ad3630.tar.bz2 |
2009-04-06 Ken Werner <ken.werner@de.ibm.com>
* libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
* libc/include/machine/time.h (nanosleep): Declare.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/machine/time.h | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/features.h | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 8be81c3..4de7d55 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-04-06 Ken Werner <ken.werner@de.ibm.com> + + * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu. + * libc/include/machine/time.h (nanosleep): Declare. + 2009-04-06 Corinna Vinschen <corinna@vinschen.de> * 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 0caf126..a296857 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 <sys/types.h> +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 1159dfd..866044f 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 |