* random.c (fill_random_seed): enclosed conditionally used
variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb1811d6a3
commit
383b905f5e
@ -1,4 +1,7 @@
|
|||||||
Thu Mar 12 05:12:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Mar 12 05:14:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* random.c (fill_random_seed): enclosed conditionally used
|
||||||
|
variables.
|
||||||
|
|
||||||
* thread_pthread.c (ruby_init_stack): range of rlim_cur may be
|
* thread_pthread.c (ruby_init_stack): range of rlim_cur may be
|
||||||
larger than int.
|
larger than int.
|
||||||
|
2
random.c
2
random.c
@ -279,8 +279,10 @@ fill_random_seed(unsigned long seed[DEFAULT_SEED_CNT])
|
|||||||
{
|
{
|
||||||
static int n = 0;
|
static int n = 0;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
#ifdef S_ISCHR
|
||||||
int fd;
|
int fd;
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(seed, 0, DEFAULT_SEED_LEN);
|
memset(seed, 0, DEFAULT_SEED_LEN);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user