]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Uclibc has deprecated 'random' so use 'rand' instead.
authorNeil Brown <neilb@suse.de>
Mon, 29 May 2006 02:06:32 +0000 (02:06 +0000)
committerNeil Brown <neilb@suse.de>
Mon, 29 May 2006 02:06:32 +0000 (02:06 +0000)
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>
mdadm.h

diff --git a/mdadm.h b/mdadm.h
index 36704f99201bad736ee5c53badee8dc71e0e0610..46d4ec0b9845317b415ed9e3e939db58a2c7b229 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -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