mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix Random.urandom in a chroot on OpenBSD
[ruby-core:90850] [Bug #15494] From: jeremyevans0 (Jeremy Evans) <merch-redmine@jeremyevans.net> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0045da598
commit
b2a7a289e0
1 changed files with 5 additions and 0 deletions
5
random.c
5
random.c
|
@ -89,6 +89,11 @@ The original copyright notice follows.
|
|||
#endif
|
||||
#include "ruby_atomic.h"
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
/* to define OpenBSD for version check */
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
typedef int int_must_be_32bit_at_least[sizeof(int) * CHAR_BIT < 32 ? -1 : 1];
|
||||
|
||||
/* Period parameters */
|
||||
|
|
Loading…
Reference in a new issue