This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++ PATCH] Fix PR bootstrap/11272
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 21 Jun 2003 09:17:23 +0200
- Subject: [libstdc++ PATCH] Fix PR bootstrap/11272
Hi,
This PR reports a bootstrap failure in libstdc++ on sparcv9-sun-solaris2.9
for GCC 3.3 because of ioctl() undefined in config/io/basic_file_stdio.cc.
I must say that I'm a bit surprised because I bootstrapped the 3.3 branch
numerous times on 5 different versions of Solaris without ever running into
a similar problem. However, the reporter is a Sun employee so he might run a
tweaked version of Solaris 9.
Anyway, the fix is straightforward and was applied to the mainline by Paolo.
Compiled on sparc64-sun-solaris2.9 and i586-redhat-linux-gnu. Ok to commit?
--
Eric Botcazou
2003-06-21 Eric Botcazou <ebotcazou@libertysurf.fr>
PR bootstrap/11272
Backport from mainline:
2003-03-09 Paolo Carlini <pcarlini@unitus.it>
* config/io/basic_file_stdio.cc: include <unistd.h>.
Index: config/io/basic_file_stdio.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/io/basic_file_stdio.cc,v
retrieving revision 1.6.2.4
diff -u -r1.6.2.4 basic_file_stdio.cc
--- config/io/basic_file_stdio.cc 1 May 2003 18:30:25 -0000 1.6.2.4
+++ config/io/basic_file_stdio.cc 21 Jun 2003 06:17:12 -0000
@@ -33,6 +33,7 @@
#include <bits/basic_file.h>
#include <fcntl.h>
+#include <unistd.h>
#ifdef _GLIBCPP_HAVE_SYS_IOCTL_H
#define BSD_COMP /* Get FIONREAD on Solaris2. */