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:
parent
b56c363090
commit
280a927d3d
3
mdadm.h
3
mdadm.h
|
@ -46,6 +46,9 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#ifdef __dietlibc__
|
#ifdef __dietlibc__
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
/* dietlibc has deprecated random and srandom!! */
|
||||||
|
#define random rand
|
||||||
|
#define srandom srand
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue