From: Neil Brown Date: Mon, 29 May 2006 02:06:32 +0000 (+0000) Subject: Uclibc has deprecated 'random' so use 'rand' instead. X-Git-Tag: mdadm-2.5.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280a927d3d8da258a70df13df4f780d823fc1da2;p=thirdparty%2Fmdadm.git 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 --- diff --git a/mdadm.h b/mdadm.h index 36704f99..46d4ec0b 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