diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-29 09:22:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-29 11:40:04 +0900 |
commit | 3238164f9c2314577f8adc544bede132bd54ad2b (patch) | |
tree | 0f33f102686c56e458f7d5b004a5d9494015738e /io.c | |
parent | 7fbd93e60fcd13b64f48d912b533a6bfd0204990 (diff) |
`ioctl_narg_len` is used only when ioctl(2) is available
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5368
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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__ |