summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-17 18:28:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-17 18:28:20 +0900
commite033c9d7db02a4e8d2973364ecb47744b63aecd3 (patch)
treefa43270420cea0307ff951ab0a04476c7dc3d0fb /random.c
parent2bd8098c6d14b485c90a8e49355991e5220989e8 (diff)
Include missing AvailabilityMacros.h
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/random.c b/random.c
index 4b5965f..28b7a9f 100644
--- a/random.c
+++ b/random.c
@@ -55,6 +55,10 @@
# include <linux/random.h>
#endif
+#if defined __APPLE__
+# include <AvailabilityMacros.h>
+#endif
+
#include "internal.h"
#include "internal/array.h"
#include "internal/compilers.h"