summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-31 22:53:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-31 22:53:58 +0000
commit488f478d24019de88aa96944a0b91987ced37e12 (patch)
treebf73719b75d9813b1e3ddb17b67528f4288d9761 /ext/socket
parentce20b98b143bda528d87c14128b8e977baece2a9 (diff)
* ext/socket/option.c (inspect_byte): used only on NetBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index f2f052e..ef71216 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -484,6 +484,7 @@ inspect_int(int level, int optname, VALUE data, VALUE ret)
}
}
+#ifdef __NetBSD__
static int
inspect_byte(int level, int optname, VALUE data, VALUE ret)
{
@@ -495,6 +496,7 @@ inspect_byte(int level, int optname, VALUE data, VALUE ret)
return 0;
}
}
+#endif
static int
inspect_errno(int level, int optname, VALUE data, VALUE ret)