From: megacz Date: Fri, 30 Jan 2004 07:04:44 +0000 (+0000) Subject: 2003/09/04 08:34:58 X-Git-Tag: RC3~715 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=b931f17d5d374832498c47ac1bcde0ba15dec0ef 2003/09/04 08:34:58 darcs-hash:20040130070444-2ba56-f9035a912c0df489354410db4f02268248bd02c7.gz --- diff --git a/upstream/gcc-3.3/patches/basic_file_io.patch b/upstream/gcc-3.3/patches/basic_file_io.patch new file mode 100644 index 0000000..c0632ea --- /dev/null +++ b/upstream/gcc-3.3/patches/basic_file_io.patch @@ -0,0 +1,17 @@ +--- libstdc++-v3/config/io/basic_file_stdio.cc Thu Sep 4 00:11:15 2003 ++++ libstdc++-v3/config/io/basic_file_stdio.cc Thu Sep 4 00:27:58 2003 +@@ -239,14 +239,6 @@ + streamsize + __basic_file::showmanyc_helper() + { +-#ifdef FIONREAD +- // Pipes and sockets. +- int __num = 0; +- int __r = ioctl(this->fd(), FIONREAD, &__num); +- if (!__r && __num >= 0) +- return __num; +-#endif +- + #ifdef _GLIBCPP_HAVE_POLL + // Cheap test. + struct pollfd __pfd[1];