Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 93226 invoked by uid 500); 21 Jan 2003 21:53:52 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 93208 invoked from network); 21 Jan 2003 21:53:51 -0000 X-Authentication-Warning: fugue.local: thom set sender to thom@planetarytramp.net using -f Date: Tue, 21 Jan 2003 21:53:55 +0000 From: Thom May To: Garrett Rooney Cc: dev@apr.apache.org Subject: Re: warnings from sys/syslimits.h on FreeBSD 5.0 Message-ID: <20030121215355.GA18053@fugue> References: <3E2D5E83.1030001@electricjellyfish.net> <20030121155726.GA9301@attbi.com> <20030121160105.GC9812@samizdat> <3E2D76AF.604@electricjellyfish.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <3E2D76AF.604@electricjellyfish.net> User-Agent: Mutt/1.4i X-Operating-System: Darwin/6.3 (Power Macintosh) X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N * Garrett Rooney (rooneg@electricjellyfish.net) wrote : > Thom May wrote: > > > > > > >surely you mean: > > > >#include > >#elsif APR_HAVE_SYS_SYSLIMITS_H > >#include ... > > > >otherwise we still have the same problem? > >-Thom > > > > > > changing it to > > #if APR_HAVE_LIMITS_H > #include > #else > #if APR_HAVE_SYS_SYSLIMITS_H > #include > #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 +#else #if APR_HAVE_SYS_SYSLIMITS_H #include #endif -#if APR_HAVE_LIMITS_H -#include #endif #if defined(PATH_MAX)