This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] epiphany/machine/stdlib.h: Disable epiphany unique random wrappers for RTEMS
- From: Joel Sherrill <joel at rtems dot org>
- To: newlib at sourceware dot org
- Cc: Joel Sherrill <joel at rtems dot org>
- Date: Sun, 20 Mar 2016 11:02:47 -0500
- Subject: [PATCH] epiphany/machine/stdlib.h: Disable epiphany unique random wrappers for RTEMS
- Authentication-results: sourceware.org; auth=none
---
newlib/libc/machine/epiphany/machine/stdlib.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newlib/libc/machine/epiphany/machine/stdlib.h b/newlib/libc/machine/epiphany/machine/stdlib.h
index 95b4063..7ede4dd 100644
--- a/newlib/libc/machine/epiphany/machine/stdlib.h
+++ b/newlib/libc/machine/epiphany/machine/stdlib.h
@@ -1,3 +1,4 @@
+#ifndef __rtems__
static __inline__ long int
random (void)
{
@@ -13,3 +14,4 @@ srandom (unsigned int seed)
srand (seed);
}
+#endif
--
1.8.3.1