This is the mail archive of the 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


This PR reports a bootstrap failure in libstdc++ on sparcv9-sun-solaris2.9 
for GCC 3.3 because of ioctl() undefined in config/io/

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  <>

	PR bootstrap/11272
	Backport from mainline:

	2003-03-09  Paolo Carlini  <>

	* config/io/ include <unistd.h>.
Index: config/io/
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/io/,v
retrieving revision
diff -u -r1.6.2.4
--- config/io/	1 May 2003 18:30:25 -0000
+++ config/io/	21 Jun 2003 06:17:12 -0000
@@ -33,6 +33,7 @@
 #include <bits/basic_file.h>
 #include <fcntl.h>
+#include <unistd.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]