Uclibc has deprecated 'random' so use 'rand' instead.

glibc says of rand

       Do not use this function in applications  intended  to  be
       portable when good randomness is needed.

Go figure...

Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
Neil Brown 2006-05-29 02:06:32 +00:00
parent b56c363090
commit 280a927d3d
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
#include <syslog.h>
#ifdef __dietlibc__
#include <strings.h>
/* dietlibc has deprecated random and srandom!! */
#define random rand
#define srandom srand
#endif