diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-16 06:14:25 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-16 06:14:25 +0000 |
| commit | 0950cef9b89cf1e31503eb2949fd99e96e1f6c1d (patch) | |
| tree | 80d7c3f75be43dae531075b4740642ae8f751584 /ext/openssl/lib | |
| parent | 00e79fdbb1a8b46d2f95ef0c45740dc306732f8b (diff) | |
| download | ruby-0950cef9b89cf1e31503eb2949fd99e96e1f6c1d.tar.gz ruby-0950cef9b89cf1e31503eb2949fd99e96e1f6c1d.tar.xz ruby-0950cef9b89cf1e31503eb2949fd99e96e1f6c1d.zip | |
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
native win32 platform doesn't have F_GETFL.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib')
| -rw-r--r-- | ext/openssl/lib/openssl/ssl.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb index 7f61fc2a6..441890865 100644 --- a/ext/openssl/lib/openssl/ssl.rb +++ b/ext/openssl/lib/openssl/ssl.rb @@ -52,7 +52,8 @@ module OpenSSL module Nonblock def initialize(*args) - flag = @io.fcntl(Fcntl::F_GETFL) | File::NONBLOCK + flag = File::NONBLOCK + flag |= @io.fcntl(Fcntl::F_GETFL) if defined?(Fcntl::F_GETFL) @io.fcntl(Fcntl::F_SETFL, flag) super end |
