summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9548c439c5..3a0cc01e04 100644
--- a/io.c
+++ b/io.c
@@ -10333,9 +10333,9 @@ maygvl_copy_stream_read(int has_gvl, struct copy_stream_struct *stp, char *buf,
goto retry_read;
#ifdef ENOSYS
case ENOSYS:
-#endif
stp->notimp = "pread";
return -1;
+#endif
}
stp->syserr = offset == (off_t)-1 ? "read" : "pread";
stp->error_no = errno;