diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-05 03:57:32 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-05 03:57:32 +0000 |
commit | 3fe8103d15c1837e15016c520217ef6dc9d7671d (patch) | |
tree | 4fed65eea80438d797c2acec1efb09bf4cb8a6b7 /ext/socket/basicsocket.c | |
parent | 564e73b7f639c8a03672e226306f9305a1edfc38 (diff) | |
download | ruby-3fe8103d15c1837e15016c520217ef6dc9d7671d.tar.gz |
* ext/socket/*.c: Add proper require for example to work.
[fix GH-1378][ci skip] Patch by @schneems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/basicsocket.c')
-rw-r--r-- | ext/socket/basicsocket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c index 2d2b22e1a9..ee967c7b7a 100644 --- a/ext/socket/basicsocket.c +++ b/ext/socket/basicsocket.c @@ -565,6 +565,8 @@ rsock_bsock_send(int argc, VALUE *argv, VALUE sock) * * Gets the do_not_reverse_lookup flag of _basicsocket_. * + * require 'socket' + * * BasicSocket.do_not_reverse_lookup = false * TCPSocket.open("www.ruby-lang.org", 80) {|sock| * p sock.do_not_reverse_lookup #=> false |