io.c: enclose statements by ifdef
* io.c (maygvl_copy_stream_read): enclose following statements by ifdef, not only a case label. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d9e1f9dad
commit
c1397c573e
2
io.c
2
io.c
@ -10333,9 +10333,9 @@ maygvl_copy_stream_read(int has_gvl, struct copy_stream_struct *stp, char *buf,
|
|||||||
goto retry_read;
|
goto retry_read;
|
||||||
#ifdef ENOSYS
|
#ifdef ENOSYS
|
||||||
case ENOSYS:
|
case ENOSYS:
|
||||||
#endif
|
|
||||||
stp->notimp = "pread";
|
stp->notimp = "pread";
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
stp->syserr = offset == (off_t)-1 ? "read" : "pread";
|
stp->syserr = offset == (off_t)-1 ? "read" : "pread";
|
||||||
stp->error_no = errno;
|
stp->error_no = errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user