diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-06 08:24:04 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-06 08:24:04 +0000 |
| commit | 4f60fa31f4573869eea3aabb2de11760e12208b3 (patch) | |
| tree | d686768bcb2d72cc8de222425e81e8b8c834a434 /random.c | |
| parent | b32121d90ba781727f9d05ca0d12bb6462b96cbb (diff) | |
| download | ruby-4f60fa31f4573869eea3aabb2de11760e12208b3.tar.gz ruby-4f60fa31f4573869eea3aabb2de11760e12208b3.tar.xz ruby-4f60fa31f4573869eea3aabb2de11760e12208b3.zip | |
* random.c (random_seed): O_NONBLOCK isn't defined on some
platforms. [ruby-dev:25417]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
| -rw-r--r-- | random.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -275,7 +275,10 @@ random_seed() memset(digits, 0, big->len * SIZEOF_BDIGITS); #ifdef S_ISCHR - if ((fd = open("/dev/urandom", O_RDONLY|O_NONBLOCK + if ((fd = open("/dev/urandom", O_RDONLY +#ifdef O_NONBLOCK + |O_NONBLOCK +#endif #ifdef O_NOCTTY |O_NOCTTY #endif |
