summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io.c b/io.c
index 5e4fdd5d95..3b3ce3ff82 100644
--- a/io.c
+++ b/io.c
@@ -11312,6 +11312,11 @@ 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.
+ see also: [Feature #16965] */
+ case ENOTSUP:
+#endif
return 0;
case EAGAIN:
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN