error in curses.h on Sol 2.6

avi_india
avi_india used Ask the Experts™
on
Hi,

My code uses curses.h. The code builds fine on Sol 2.7 and sol 2.8, however, when I build the code on Sol2.6, i am getting the following error:
"/usr/include/curses.h", line 80: Error: A declaration does not specify a tag or an identifier.

The line 80 is
typedef char bool;

Looks to be curses.h is broken here on this line.
Is there a patch available for the same or if some one could provide any other pointers on the same.

In Sol2.7 this statement is enclosed in an #ifdef.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
try to put this declaration with this.
#ifndef __cplusplus .. #endif

or try to complile thing commenting out this definition.

Author

Commented:
That would mean touching and modifying the curses.h file.
Is this the only way out, as I had alrady tried this yesterday and this works.
But if it requires modifying curses.h file then Is there a patch for this?

Commented:
No, as far as i know sun did not release any patch for this bug. may be user did not think they need a patch for this.
but they fixed this problem in later solaris releases.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial