This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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. */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]