summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-29 09:22:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-29 11:40:04 +0900
commit3238164f9c2314577f8adc544bede132bd54ad2b (patch)
tree0f33f102686c56e458f7d5b004a5d9494015738e
parent7fbd93e60fcd13b64f48d912b533a6bfd0204990 (diff)
`ioctl_narg_len` is used only when ioctl(2) is available
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5368
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 4ed4ee34f8..7ff7e5a33c 100644
--- a/io.c
+++ b/io.c
@@ -10148,6 +10148,7 @@ linux_iocparm_len(ioctl_req_t cmd)
}
#endif
+#ifdef HAVE_IOCTL
static long
ioctl_narg_len(ioctl_req_t cmd)
{
@@ -10169,6 +10170,7 @@ ioctl_narg_len(ioctl_req_t cmd)
return len;
}
+#endif
#ifdef HAVE_FCNTL
#ifdef __linux__