From b931f17d5d374832498c47ac1bcde0ba15dec0ef Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:04:44 +0000 Subject: [PATCH] 2003/09/04 08:34:58 darcs-hash:20040130070444-2ba56-f9035a912c0df489354410db4f02268248bd02c7.gz --- upstream/gcc-3.3/patches/basic_file_io.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 upstream/gcc-3.3/patches/basic_file_io.patch 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]; -- 1.7.10.4