summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 f2f052e8e69..ef712168a78 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)