From: Rodney Brown Date: Wed, 27 Feb 2002 12:29:43 +0000 (+0000) Subject: 2002-02-27 Rodney Brown X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b84911e82025969e0252638debb223cf7107f17b;p=binutils-gdb.git 2002-02-27 Rodney Brown * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e77bc1a3406..bb41c600410 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-02-27 Rodney Brown + + * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5. + 2002-02-27 Daniel Jacobowitz * gdbserver/acconfig.h: New file. diff --git a/gdb/utils.c b/gdb/utils.c index 5d64083ae6b..af1a103b92d 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2533,6 +2533,8 @@ gdb_realpath (const char *filename) char buf[PATH_MAX]; #elif defined (MAXPATHLEN) char buf[MAXPATHLEN]; +#elif defined (HAVE_UNISTD_H) && defined(HAVE_ALLOCA) + char *buf = alloca ((size_t)pathconf ("/", _PC_PATH_MAX)); #else #error "Neither PATH_MAX nor MAXPATHLEN defined" #endif