summaryrefslogtreecommitdiffstats
path: root/gcc45-java-FIONREAD.diff
diff options
context:
space:
mode:
Diffstat (limited to 'gcc45-java-FIONREAD.diff')
-rw-r--r--gcc45-java-FIONREAD.diff13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc45-java-FIONREAD.diff b/gcc45-java-FIONREAD.diff
deleted file mode 100644
index 3086e1b..0000000
--- a/gcc45-java-FIONREAD.diff
+++ /dev/null
@@ -1,13 +0,0 @@
-http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35536
-
---- 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;