initial checkin
[org.ibex.nanogoat.git] / upstream / gcc-3.3 / patches / basic_file_io.patch
1 --- libstdc++-v3/config/io/basic_file_stdio.cc  Thu Sep  4 00:11:15 2003
2 +++ libstdc++-v3/config/io/basic_file_stdio.cc  Thu Sep  4 00:27:58 2003
3 @@ -239,14 +239,6 @@
4    streamsize
5    __basic_file<char>::showmanyc_helper()
6    {
7 -#ifdef FIONREAD
8 -    // Pipes and sockets.    
9 -    int __num = 0;
10 -    int __r = ioctl(this->fd(), FIONREAD, &__num);
11 -    if (!__r && __num >= 0)
12 -      return __num; 
13 -#endif    
14 -
15  #ifdef _GLIBCPP_HAVE_POLL
16      // Cheap test.
17      struct pollfd __pfd[1];