1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/ipsocket.c (Init_ipsocket): undef getpeereid at IPSocket.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-11 02:48:08 +00:00
parent c645978f1c
commit fa65ca097b
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Feb 11 11:47:41 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/ipsocket.c (Init_ipsocket): undef getpeereid at IPSocket.
Wed Feb 11 10:16:34 2009 Tanaka Akira <akr@fsij.org> Wed Feb 11 10:16:34 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: check getpeereid. * ext/socket/extconf.rb: check getpeereid.

View file

@ -243,4 +243,6 @@ Init_ipsocket(void)
rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, 0); rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, 0);
rb_define_method(rb_cIPSocket, "recvfrom", ip_recvfrom, -1); rb_define_method(rb_cIPSocket, "recvfrom", ip_recvfrom, -1);
rb_define_singleton_method(rb_cIPSocket, "getaddress", ip_s_getaddress, 1); rb_define_singleton_method(rb_cIPSocket, "getaddress", ip_s_getaddress, 1);
rb_undef_method(rb_cIPSocket, "getpeereid");
} }