From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24241 invoked by alias); 20 Jan 2002 01:39:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24202 invoked from network); 20 Jan 2002 01:39:01 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 20 Jan 2002 01:39:01 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 241EC9869; Sat, 19 Jan 2002 17:38:43 -0800 (PST) Date: Sat, 19 Jan 2002 17:39:00 -0000 From: Jason R Thorpe To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] Use MAXPATHLEN, fix sunos build problem Message-ID: <20020119173843.N8364@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , Andrew Cagney , gdb-patches@sources.redhat.com References: <3C4A12B7.3040502@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C4A12B7.3040502@cygnus.com>; from ac131313@cygnus.com on Sat, Jan 19, 2002 at 07:43:35PM -0500 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-01/txt/msg00552.txt.bz2 On Sat, Jan 19, 2002 at 07:43:35PM -0500, Andrew Cagney wrote: > 2002-01-19 Andrew Cagney > > * utils.c: Include for MAXPATHLEN. > (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined. Seems like you really want PATH_MAX to be an autoconf test, and if not, then test for MAXPATHLEN in and define PATH_MAX in terms of MAXPATHLEN. Basically, is by no means a standardized header, and pulling it in causes all sorts of namespace pollution, so you wanna use it only if you have to. -- -- Jason R. Thorpe