This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Use MAXPATHLEN, fix sunos build problem
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 19 Jan 2002 17:38:43 -0800
- Subject: Re: [patch] Use MAXPATHLEN, fix sunos build problem
- Organization: Wasabi Systems, Inc.
- References: <3C4A12B7.3040502@cygnus.com>
- Reply-to: thorpej at wasabisystems dot com
On Sat, Jan 19, 2002 at 07:43:35PM -0500, Andrew Cagney wrote:
> 2002-01-19 Andrew Cagney <ac131313@redhat.com>
>
> * utils.c: Include <sys/param.h> 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 <sys/param.h> and define PATH_MAX
in terms of MAXPATHLEN.
Basically, <machine/param.h> 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 <thorpej@wasabisystems.com>