summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 20:14:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 20:14:51 +0000
commit383b905f5eb834c9573ae41d192d0f90f3aa147e (patch)
treede6aab6f225c85b491258ff4ca8ec4ec55ae8756 /random.c
parentbb1811d6a3621d04d9f45d137c35b8862135a140 (diff)
* 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
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/random.c b/random.c
index 050619ef18..be720a0fe5 100644
--- a/random.c
+++ b/random.c
@@ -279,8 +279,10 @@ fill_random_seed(unsigned long seed[DEFAULT_SEED_CNT])
{
static int n = 0;
struct timeval tv;
+#ifdef S_ISCHR
int fd;
struct stat statbuf;
+#endif
memset(seed, 0, DEFAULT_SEED_LEN);