summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-29 02:06:32 +0000
committerNeil Brown <neilb@suse.de>2006-05-29 02:06:32 +0000
commit280a927d3d8da258a70df13df4f780d823fc1da2 (patch)
treeaef82e0f9e7f240fd8153adac3849f96e4d08b6a
parentb56c3630901b7074f7f64989a39b73f6055f04e9 (diff)
downloadmdadm-280a927d3d8da258a70df13df4f780d823fc1da2.tar.gz
mdadm-280a927d3d8da258a70df13df4f780d823fc1da2.tar.xz
mdadm-280a927d3d8da258a70df13df4f780d823fc1da2.zip
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>
-rw-r--r--mdadm.h3
1 files changed, 3 insertions, 0 deletions
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 <syslog.h>
#ifdef __dietlibc__
#include <strings.h>
+/* dietlibc has deprecated random and srandom!! */
+#define random rand
+#define srandom srand
#endif