1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ioctl_narg_len is used only when ioctl(2) is available

This commit is contained in:
Nobuyoshi Nakada 2021-12-29 09:22:12 +09:00
parent 7fbd93e60f
commit 3238164f9c
Notes: git 2021-12-29 11:40:28 +09:00

2
io.c
View file

@ -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__