summaryrefslogtreecommitdiff
path: root/compat/arc4random.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/arc4random.c')
-rw-r--r--compat/arc4random.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/arc4random.c b/compat/arc4random.c
index 2c859f1849294..a09665c5df224 100644
--- a/compat/arc4random.c
+++ b/compat/arc4random.c
@@ -48,6 +48,9 @@
#else /* !__GNUC__ */
#define inline
#endif /* !__GNUC__ */
+#ifndef MAP_ANON
+#define MAP_ANON MAP_ANONYMOUS
+#endif
#define KEYSZ 32
#define IVSZ 8