From 4043565023531d173478c216e2a9cc6228f44a7e Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 5 Oct 2016 03:57:32 +0000 Subject: * 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 --- ext/socket/ancdata.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/socket/ancdata.c') diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 02766ba5d2..f5451c9569 100644 --- a/ext/socket/ancdata.c +++ b/ext/socket/ancdata.c @@ -360,6 +360,8 @@ ancillary_timestamp(VALUE self) * * The size and endian is dependent on the host. * + * require 'socket' + * * p Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, STDERR.fileno) * #=> # */ -- cgit v1.2.3