IO.copy_stream: handle EOPNOTSUP instead of ENOTSUP
This commit is contained in:
parent
93df301048
commit
56dd578d7e
6
io.c
6
io.c
@ -11312,10 +11312,10 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
|
|||||||
#ifdef ENOSYS
|
#ifdef ENOSYS
|
||||||
case ENOSYS:
|
case ENOSYS:
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENOTSUP
|
#ifdef EOPNOTSUP
|
||||||
/* some RedHat kernels may return ENOTSUP on an NFS mount.
|
/* some RedHat kernels may return EOPNOTSUP on an NFS mount.
|
||||||
see also: [Feature #16965] */
|
see also: [Feature #16965] */
|
||||||
case ENOTSUP:
|
case EOPNOTSUP:
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user