From b84911e82025969e0252638debb223cf7107f17b Mon Sep 17 00:00:00 2001 From: Rodney Brown Date: Wed, 27 Feb 2002 12:29:43 +0000 Subject: [PATCH] 2002-02-27 Rodney Brown * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5. --- gdb/ChangeLog | 4 ++++ gdb/utils.c | 2 ++ 2 files changed, 6 insertions(+) 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 -- 2.30.2