mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
68f515cf5e
commit
bf089d786a
1 changed files with 1 additions and 1 deletions
2
random.c
2
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue