mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
IO.copy_stream: handle EOPNOTSUP instead of ENOTSUP
This commit is contained in:
parent
93df301048
commit
56dd578d7e
1 changed files with 3 additions and 3 deletions
6
io.c
6
io.c
|
@ -11312,10 +11312,10 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
|
|||
#ifdef ENOSYS
|
||||
case ENOSYS:
|
||||
#endif
|
||||
#ifdef ENOTSUP
|
||||
/* some RedHat kernels may return ENOTSUP on an NFS mount.
|
||||
#ifdef EOPNOTSUP
|
||||
/* some RedHat kernels may return EOPNOTSUP on an NFS mount.
|
||||
see also: [Feature #16965] */
|
||||
case ENOTSUP:
|
||||
case EOPNOTSUP:
|
||||
#endif
|
||||
return 0;
|
||||
case EAGAIN:
|
||||
|
|
Loading…
Add table
Reference in a new issue