summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdadm.h')
-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