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:
parent
7fbd93e60f
commit
3238164f9c
Notes:
git
2021-12-29 11:40:28 +09:00
1 changed files with 2 additions and 0 deletions
2
io.c
2
io.c
|
@ -10148,6 +10148,7 @@ linux_iocparm_len(ioctl_req_t cmd)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_IOCTL
|
||||||
static long
|
static long
|
||||||
ioctl_narg_len(ioctl_req_t cmd)
|
ioctl_narg_len(ioctl_req_t cmd)
|
||||||
{
|
{
|
||||||
|
@ -10169,6 +10170,7 @@ ioctl_narg_len(ioctl_req_t cmd)
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_FCNTL
|
#ifdef HAVE_FCNTL
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
Loading…
Add table
Reference in a new issue