OSDN Git Service

2009-04-06 Ken Werner <ken.werner@de.ibm.com>
authorjjohnstn <jjohnstn>
Mon, 6 Apr 2009 22:04:33 +0000 (22:04 +0000)
committerjjohnstn <jjohnstn>
Mon, 6 Apr 2009 22:04:33 +0000 (22:04 +0000)
        * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
        * libc/include/machine/time.h (nanosleep): Declare.

newlib/ChangeLog
newlib/libc/include/machine/time.h
newlib/libc/include/sys/features.h

index 8be81c3..4de7d55 100644 (file)
@@ -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.
index 0caf126..a296857 100644 (file)
@@ -9,6 +9,11 @@
 #endif
 #endif /* !__rtems__ */
 
+#ifdef __SPU__
+#include <sys/types.h>
+int nanosleep (const struct timespec *, struct timespec *);
+#endif
+
 #endif /* _MACHTIME_H_ */
 
 
index 1159dfd..866044f 100644 (file)
@@ -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