This is the mail archive of the gcc-bugs@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]

Re: /usr/include/curses.h not fixed on sparc-sun-solaris2.5.1


	* fixinc.sol2: New file.
	* configure.in (i[[34567]]86-*-solaris2*): Use it on Solaris >= 2.5.
	(powerpcle-*-solaris2*): Likewise.
	(sparc-*-solaris2*): Likewise.

This patch defeats Paul Eggert's attempts to make the gcc solaris2 port
OS version independent.

Note how math.h is fixed.  We create a stub header that does something like
this:
	#define exception __math_exception
	#include_next <math.h>
	#undef exception
This will work regardless of the OS version, because we have not copied the
original math.h file.

The same trick should work for the curses.h file.  We should be able to do
this:
	#define bool _curses_boot_t
	#include_next <curses.h>
	#undef bool
to fix the curses.h problem.

If we do that, then we preserve the intent of Paul Eggert's changes, which
is that fixinclude should not copy any files out of /usr/include.  I think
this is a useful property to preserve if at all possible.

Jim


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