зеркало из https://github.com/github/ruby.git
* io.c (nogvl_copy_stream_sendfile): ISO C90 forbids mixed declarations and code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1684c23496
Коммит
81f4dba385
|
@ -1,3 +1,8 @@
|
|||
Sun May 9 06:15:21 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* io.c (nogvl_copy_stream_sendfile): ISO C90 forbids mixed
|
||||
declarations and code.
|
||||
|
||||
Sun May 9 02:57:02 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/fiddle/lib/fiddle.rb: only require DL if it hasn't been required
|
||||
|
|
5
io.c
5
io.c
|
@ -8078,8 +8078,9 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
|
|||
if (use_pread)
|
||||
copy_length = src_stat.st_size - src_offset;
|
||||
else {
|
||||
errno = 0;
|
||||
off_t cur = lseek(stp->src_fd, 0, SEEK_CUR);
|
||||
off_t cur;
|
||||
errno = 0;
|
||||
cur = lseek(stp->src_fd, 0, SEEK_CUR);
|
||||
if (cur == (off_t)-1 && errno) {
|
||||
stp->syserr = "lseek";
|
||||
stp->error_no = errno;
|
||||
|
|
Загрузка…
Ссылка в новой задаче