Compiling on OpenBSD

Ethan Galstad nagios at nagios.org
Fri Aug 12 00:11:48 CEST 2005


On 11 Aug 2005 at 9:52, Andreas Ericsson wrote:

> Ethan Galstad wrote:
> > Thanks for the note - I'll change the include file ordering.  Not
> > sure why you'd still get warnings about WEXITSTATUS and WIFEXITED if
> > there's already a test in there for them, but as long as things
> > compile cleanly, I'll probably leave this as it is for now.
> > 
> 
> I've noticed this on a couple of occasions myself. The warnings come
> because WEXITSTATUS and WIFEXITED aren't defined in config.h when they
> are parsed there, but there are no conditionals around them in
> sys/wait.h (which is where they actually should be defined). On some
> systems they are duplicated in stdlib.h (FC3 does this, Openwall does
> not). Where they are not, one gets two three-line warnings for every
> C-file compiled. I imagine it can be a bit worrying for those who
> don't know what it means.
> 
> The neatest solution is to move the conditional definition of system
> macros to the end of config.h. That way the system headers are
> guaranteed to have the first shot at defining them.
> 

Good point.  I'll move the definitions to the end of config.h.  
Thanks!

Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf




More information about the Developers mailing list