summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-04 03:21:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-04 11:28:39 +0900
commitbf089d786a7ee1fa8c972e10bb31b23ba30a1438 (patch)
tree4f6b3fb5af3cbdf47adbe7bd60e71d94612e83b3 /random.c
parent68f515cf5ed50c74d5f8e19373ea7f6435b62c4e (diff)
Fixed syntax error with gcc on macOS
Security/Authorization.h defines AuthorizationExternalForm by using clang extension which allows variably modified types in a file scope. As we just need high-level accessors only, include Security/SecRandom.h instead.
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 83df6d1eb5..d68eade0c4 100644
--- a/random.c
+++ b/random.c
@@ -495,7 +495,7 @@ fill_random_bytes_urandom(void *seed, size_t size)
#if 0
#elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
-#include <Security/Security.h>
+#include <Security/SecRandom.h>
static int
fill_random_bytes_syscall(void *seed, size_t size, int unused)