apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom May <t...@planetarytramp.net>
Subject Re: warnings from sys/syslimits.h on FreeBSD 5.0
Date Tue, 21 Jan 2003 16:38:20 GMT
* Garrett Rooney (rooneg@electricjellyfish.net) wrote :
> Thom May wrote:
> 
> > 
> >
> >surely you mean: 
> >
> >#include <limits.h>
> >#elsif APR_HAVE_SYS_SYSLIMITS_H
> >#include ...
> >
> >otherwise we still have the same problem?
> >-Thom
> > 
> >
> 
> changing it to
> 
> #if APR_HAVE_LIMITS_H
> #include <limits.h>
> #else
> #if APR_HAVE_SYS_SYSLIMITS_H
> #include <sys/syslimits.h>
> #endif
> #endif
> 
> solved the problem.  i suppose switching the order would work on 
> FreeBSD, but it seems like we're relying on an ugly little 
> implementation detail, so i'd rather either do this or make configure 
> not pick up sys/syslimits.h when limits.h is found.
> 
Indeed. I'm happy with this in the short term, but longer term we should be
aiming for Jeff's proposal.
I'll fix this up now unless there are any objections?
Cheers,
-Thom

Mime
View raw message