ruby-changes:65385
From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Mar 2021 11:31:56 +0900 (JST)
Subject: [ruby-changes:65385] bf089d786a (master): Fixed syntax error with gcc on macOS
https://git.ruby-lang.org/ruby.git/commit/?id=bf089d786a From bf089d786a7ee1fa8c972e10bb31b23ba30a1438 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 4 Mar 2021 03:21:44 +0900 Subject: 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. --- random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/random.c b/random.c index 83df6d1..d68eade 100644 --- a/random.c +++ b/random.c @@ -495,7 +495,7 @@ fill_random_bytes_urandom(void *seed, size_t size) https://github.com/ruby/ruby/blob/trunk/random.c#L495 #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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/