Message ID | 51DD56E7.6040203@gmail.com |
---|---|
State | New |
Headers | show |
On 7/10/2013 20:43, JonY wrote: > Hi, > > Attached are some minor patches, comments? > Kai, ping?
2013/7/13 JonY <10walls@gmail.com>: > On 7/10/2013 20:43, JonY wrote: >> Hi, >> >> Attached are some minor patches, comments? >> > > Kai, ping? Please sent each patch as separate mail, and please add ChangeLogs for them too. Additionally it would be fine to read some lines about cause for those patches. Kai > 2013/7/13 JonY <10walls@gmail.com>: > On 7/10/2013 20:43, JonY wrote: >> Hi, >> >> Attached are some minor patches, comments? >> > > Kai, ping? > >
--- origsrc/gcc-4.5.1/libjava/gnu/java/nio/channels/natFileChannelPosix.cc 2007-04-02 20:05:50.000000000 -0500 +++ src/gcc-4.5.1/libjava/gnu/java/nio/channels/natFileChannelPosix.cc 2010-10-27 13:39:34.044718100 -0500 @@ -386,7 +386,7 @@ FileChannelImpl::available (void) #if defined (FIONREAD) r = ::ioctl (fd, FIONREAD, &num); - if (r == -1 && errno == ENOTTY) + if (r == -1 && (errno == ENOTTY || errno == EINVAL)) { // If the ioctl doesn't work, we don't care. r = 0;