summaryrefslogtreecommitdiff
path: root/ext/socket/ifaddr.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-17 03:11:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-17 03:11:42 +0000
commitd05010f6a4c0ce0473b815d0c8c5f3839a37e541 (patch)
tree49efd26048a918789f71ee03d02f07a2920105ee /ext/socket/ifaddr.c
parent37659d8fc5ae1978a4373492654f763324c407e7 (diff)
Enable the document for Socket::Ifaddr#ifindex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ifaddr.c')
-rw-r--r--ext/socket/ifaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/ifaddr.c b/ext/socket/ifaddr.c
index e5eb48b..2e9d354 100644
--- a/ext/socket/ifaddr.c
+++ b/ext/socket/ifaddr.c
@@ -128,6 +128,7 @@ ifaddr_name(VALUE self)
return rb_str_new_cstr(ifa->ifa_name);
}
+#ifdef HAVE_IF_NAMETOINDEX
/*
* call-seq:
* ifaddr.ifindex => integer
@@ -135,7 +136,6 @@ ifaddr_name(VALUE self)
* Returns the interface index of _ifaddr_.
*/
-#ifdef HAVE_IF_NAMETOINDEX
static VALUE
ifaddr_ifindex(VALUE self)
{