ruby-changes:70647
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Dec 2021 11:40:26 +0900 (JST)
Subject: [ruby-changes:70647] 3238164f9c (master): `ioctl_narg_len` is used only when ioctl(2) is available
https://git.ruby-lang.org/ruby.git/commit/?id=3238164f9c From 3238164f9c2314577f8adc544bede132bd54ad2b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Dec 2021 09:22:12 +0900 Subject: `ioctl_narg_len` is used only when ioctl(2) is available --- io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io.c b/io.c index 4ed4ee34f84..7ff7e5a33c6 100644 --- a/io.c +++ b/io.c @@ -10148,6 +10148,7 @@ linux_iocparm_len(ioctl_req_t cmd) https://github.com/ruby/ruby/blob/trunk/io.c#L10148 } #endif +#ifdef HAVE_IOCTL static long ioctl_narg_len(ioctl_req_t cmd) { @@ -10169,6 +10170,7 @@ ioctl_narg_len(ioctl_req_t cmd) https://github.com/ruby/ruby/blob/trunk/io.c#L10170 return len; } +#endif #ifdef HAVE_FCNTL #ifdef __linux__ -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/