aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-10-16 23:03:40 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-10-16 23:03:40 +0000
commit5d2b3a0a5a24fb4847e571f5ca4cee7bff9f985c (patch)
tree00c31e7dd83c549a23137ec52686599b0dd8ea66
parent01bf0593df8c7bb302f4d5cee139db837faf28d2 (diff)
downloadnewlib-5d2b3a0a5a24fb4847e571f5ca4cee7bff9f985c.zip
newlib-5d2b3a0a5a24fb4847e571f5ca4cee7bff9f985c.tar.gz
newlib-5d2b3a0a5a24fb4847e571f5ca4cee7bff9f985c.tar.bz2
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/include/sys/unistd.h: RTEMS follows standard for sync().
-rw-r--r--newlib/ChangeLog12
-rw-r--r--newlib/libc/include/sys/unistd.h4
2 files changed, 9 insertions, 7 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b991cd8..4d24e7b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,9 +1,13 @@
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
- * libc/include/time.h: Add CLOCK_MONOTONIC.
- * libc/include/sys/features.h: Define
- _POSIX_MONOTONIC_CLOCK for RTEMS.
-
+ * libc/include/sys/unistd.h: RTEMS follows standard for sync().
+
+2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * libc/include/time.h: Add CLOCK_MONOTONIC.
+ * libc/include/sys/features.h: Define
+ _POSIX_MONOTONIC_CLOCK for RTEMS.
+
2008-10-15 Jeff Johnston <jjohnstn@redhat.com>
* newlib.hin: Restore to previous 1.14 version which has no
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 8a296fe..5be5266 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -229,10 +229,8 @@ useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
char * _EXFUN(mktemp, (char *));
#endif
-#if defined(__CYGWIN__) || defined(__SPU__)
+#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
void _EXFUN(sync, (void));
-#elif defined(__rtems__)
-int _EXFUN(sync, (void));
#endif
ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen));