2003/09/04 08:34:58
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:04:44 +0000 (07:04 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:04:44 +0000 (07:04 +0000)
darcs-hash:20040130070444-2ba56-f9035a912c0df489354410db4f02268248bd02c7.gz

upstream/gcc-3.3/patches/basic_file_io.patch [new file with mode: 0644]

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 (file)
index 0000000..c0632ea
--- /dev/null
@@ -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<char>::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];