ruby-changes:54484
From: nobu <ko1@a...>
Date: Thu, 3 Jan 2019 20:42:31 +0900 (JST)
Subject: [ruby-changes:54484] nobu:r66699 (trunk): Fix Random.urandom in a chroot on OpenBSD
nobu 2019-01-03 20:42:24 +0900 (Thu, 03 Jan 2019) New Revision: 66699 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66699 Log: Fix Random.urandom in a chroot on OpenBSD [ruby-core:90850] [Bug #15494] From: jeremyevans0 (Jeremy Evans) <merch-redmine@j...> Modified files: trunk/random.c Index: random.c =================================================================== --- random.c (revision 66698) +++ random.c (revision 66699) @@ -89,6 +89,11 @@ The original copyright notice follows. https://github.com/ruby/ruby/blob/trunk/random.c#L89 #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 */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/