Problem compiling nagios 2.3.1

Andreas Ericsson ae at op5.se
Wed May 17 13:50:44 CEST 2006


Andrea Gabellini wrote:
> Hi,
> 
> CHAR_BIT is also defined in iso/limits_iso.h.
> 
> What about a way to include this file if we are on Solaris?
> 

iso/limits_iso.h doesn't exist on very many systems. It should, if 
needed, be included by simply grabbing <limits.h>. <limits.h> is POSIX, 
and by POSIX rules it should define (or include the files that define) 
INT_MAX and CHAR_BIT.

In other words, including <limits.h> should be enough. If it isn't then 
it should be considered a compliance bug in the header files.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list