aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-08-29 16:10:58 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-08-29 16:10:58 +0900
commit56dd578d7e715fd255c668577162ede65c7e909f (patch)
tree387fc11475891ad43ef37461edf35adf70c5045f /io.c
parent93df3010482ad52e5ada2e416c996005da956e1e (diff)
downloadruby-56dd578d7e715fd255c668577162ede65c7e909f.tar.gz
IO.copy_stream: handle EOPNOTSUP instead of ENOTSUP
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 3b3ce3ff82..1b9a68ab8d 100644
--- a/io.c
+++ b/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: