apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Rodrigues <rodr...@attbi.com>
Subject Re: warnings from sys/syslimits.h on FreeBSD 5.0
Date Tue, 21 Jan 2003 16:16:06 GMT
On Tue, Jan 21, 2003 at 04:01:05PM +0000, Thom May wrote:
> >    to:
> > 
> > /* header files for PATH_MAX, _POSIX_PATH_MAX */
> > #if APR_HAVE_LIMITS_H
> > #include <limits.h>
> > #endif
> > #if APR_HAVE_SYS_SYSLIMITS_H
> > #include <sys/syslimits.h>
> > #endif
> surely you mean: 
> 
> #include <limits.h>
> #elsif APR_HAVE_SYS_SYSLIMITS_H
> #include ...
> 
> otherwise we still have the same problem?

Nope, because in FreeBSD's <sys/syslimits.h> there is this:

#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_)
#if __GNUC__
#warning "No user-serviceable parts inside."
#endif
#endif


So, if you change the order of the includes, the warning goes away.


--
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com

Mime
View raw message