apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett Rooney <roo...@electricjellyfish.net>
Subject Re: warnings from sys/syslimits.h on FreeBSD 5.0
Date Tue, 21 Jan 2003 16:34:55 GMT
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.

-garrett


Mime
View raw message