Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 15074 invoked by uid 500); 12 Jun 2000 19:15:06 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 15063 invoked from network); 12 Jun 2000 19:15:05 -0000 Date: Mon, 12 Jun 2000 12:15:31 -0700 From: Greg Stein To: new-httpd@apache.org Subject: off_t format code (was: Re: cvs commit: ...) Message-ID: <20000612121531.H19484@lyra.org> Mail-Followup-To: new-httpd@apache.org References: <20000612113642.E19484@lyra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from rbb@covalent.net on Mon, Jun 12, 2000 at 12:08:59PM -0700 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Mon, Jun 12, 2000 at 12:08:59PM -0700, rbb@covalent.net wrote: > > We can enable "warnings are errors" in GCC, then try to compile a test > > fragment. If the "%d" and off_t sizes are wrong, then we get an error. > > > > Of course, this will be specific to GCC, so there would need to be > > mechanisms for other compilers (most compilers have a similar flag), or we > > would need to use the hints.m4 file to patch up the resulting value. > > > > How's that sound? > > -0 for the test compile. This would be ugly autoconf code, so I dislike > it. Euh... autoconf does this all over the place :-) Not sure how this one is different. > +1 for the hints.m4 file. I can do this this afternoon unless > somebody else wants to do it before I get to it. Well, this would work, but it is hard-coding the stuff. I'd much prefer automatic configuration. Also... at the moment, hints.m4 is based on the platform, while this format thing will be based on the compiler. Cheers, -g -- Greg Stein, http://www.lyra.org/