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 21:53:55 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
> 
Right, so basically the attached patch?
If no-one has any objections, I'd like to commit this in the morning, then
we can start looking at the configure system in the long term.
Cheers,
-Thom


Index: include/apr.h.in
===================================================================
RCS file: /home/cvs/apr/include/apr.h.in,v
retrieving revision 1.117
diff -u -u -r1.117 apr.h.in
--- include/apr.h.in	22 Oct 2002 12:37:40 -0000	1.117
+++ include/apr.h.in	21 Jan 2003 21:48:16 -0000
@@ -304,11 +304,12 @@
 #endif
 
 /* header files for PATH_MAX, _POSIX_PATH_MAX */
+#if APR_HAVE_LIMITS_H
+#include <limits.h>
+#else
 #if APR_HAVE_SYS_SYSLIMITS_H
 #include <sys/syslimits.h>
 #endif
-#if APR_HAVE_LIMITS_H
-#include <limits.h>
 #endif
 
 #if defined(PATH_MAX)

Mime
View raw message