This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Add simple versions of random() and srandom()
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: newlib at sourceware dot org
- Date: Wed, 23 Mar 2016 00:04:41 -0500
- Subject: Re: [PATCH] Add simple versions of random() and srandom()
- Authentication-results: sourceware.org; auth=none
- References: <1458687116-16115-1-git-send-email-joel at rtems dot org>
On 2016-03-22 17:51, Joel Sherrill wrote:
Prototypes also added for initstate() and setstate() but they
were not implemented.
This should allow Cygwin to remove its own declarations of these functions.
+#if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE
#if __MISC_VISIBLE || __XSI_VISIBLE >= 500
diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am
index 9deaf9a..a59df68 100644
--- a/newlib/libc/stdlib/Makefile.am
+++ b/newlib/libc/stdlib/Makefile.am
@@ -50,6 +50,7 @@ GENERAL_SOURCES = \
quick_exit.c \
rand.c \
rand_r.c \
+ random.c \
realloc.c \
reallocf.c \
sb_charsets.c \
This also needs an addition to CHEWOUT_FILES and stdlib.tex.
--
Yaakov