summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 33b47451fd..ce7bf9995f 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1787,4 +1787,10 @@ Init_socket()
#endif
rb_define_singleton_method(rb_cSocket, "ip_address_list", socket_s_ip_address_list, 0);
+
+ /* defined here for rdoc */
+ rb_define_method(rb_cTCPServer, "listen", sock_listen, 1);
+#ifdef HAVE_SYS_UN_H
+ rb_define_method(rb_cUNIXServer, "listen", sock_listen, 1);
+#endif
}