]>
Commit | Line | Data |
---|---|---|
dd39a663 JB |
1 | --- gcc-3.3/libstdc++-v3/config/io/basic_file_stdio.cc.orig 2003-05-01 20:30:25.000000000 +0200 |
2 | +++ gcc-3.3/libstdc++-v3/config/io/basic_file_stdio.cc 2003-05-17 09:37:01.000000000 +0200 | |
3 | @@ -239,7 +239,7 @@ | |
4 | streamsize | |
5 | __basic_file<char>::showmanyc_helper() | |
6 | { | |
7 | -#ifdef FIONREAD | |
8 | +#if defined(FIONREAD) && (defined(_GLIBCPP_HAVE_SYS_IOCTL_H) || defined(_GLIBCPP_HAVE_SYS_FILIO_H)) | |
9 | // Pipes and sockets. | |
10 | int __num = 0; | |
11 | int __r = ioctl(this->fd(), FIONREAD, &__num); |