diff options
author | Neil Brown <neilb@suse.de> | 2006-05-29 02:06:32 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-29 02:06:32 +0000 |
commit | 280a927d3d8da258a70df13df4f780d823fc1da2 (patch) | |
tree | aef82e0f9e7f240fd8153adac3849f96e4d08b6a /mdadm.h | |
parent | b56c3630901b7074f7f64989a39b73f6055f04e9 (diff) | |
download | mdadm-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>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |