From 280a927d3d8da258a70df13df4f780d823fc1da2 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 29 May 2006 02:06:32 +0000 Subject: 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 --- mdadm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mdadm.h b/mdadm.h index 36704f9..46d4ec0 100644 --- a/mdadm.h +++ b/mdadm.h @@ -46,6 +46,9 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); #include #ifdef __dietlibc__ #include +/* dietlibc has deprecated random and srandom!! */ +#define random rand +#define srandom srand #endif -- cgit