* Makefile.in (DLL_OFILES): Add newly-imported random.o. Eliminate reliance on

libiberty.
* random.cc: Import from FreeBSD.  Modify for Cygwin environment.
* include/cygwin/stdlib.h (random): Reflect change in return value to be more
linux/freebsd-like.
(srandom): Ditto.
This commit is contained in:
Christopher Faylor
2007-07-08 15:04:34 +00:00
parent f3c7a5c457
commit b85bae86cd
4 changed files with 41 additions and 30 deletions

View File

@ -24,8 +24,8 @@ void setprogname (const char *);
#ifndef __STRICT_ANSI__
char *realpath (const char *, char *);
int unsetenv (const char *);
int random (void);
long srandom (unsigned);
long random (void);
void srandom (unsigned);
char *ptsname (int);
int grantpt (int);
int unlockpt (int);