diff options
author | Rodney Brown <rbrown64@csc.com.au> | 2002-02-27 12:29:43 +0000 |
---|---|---|
committer | Rodney Brown <rbrown64@csc.com.au> | 2002-02-27 12:29:43 +0000 |
commit | b84911e82025969e0252638debb223cf7107f17b (patch) | |
tree | 925552f18b557954c612117f267f98e6d84befa4 /gdb | |
parent | 58caa3dcdb43a5d66932182338f41df0bfd6cc98 (diff) | |
download | gdb-b84911e82025969e0252638debb223cf7107f17b.zip gdb-b84911e82025969e0252638debb223cf7107f17b.tar.gz gdb-b84911e82025969e0252638debb223cf7107f17b.tar.bz2 |
2002-02-27 Rodney Brown <rbrown64@csc.com.au>
* utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/utils.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e77bc1a..bb41c60 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-02-27 Rodney Brown <rbrown64@csc.com.au> + + * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5. + 2002-02-27 Daniel Jacobowitz <drow@mvista.com> * gdbserver/acconfig.h: New file. diff --git a/gdb/utils.c b/gdb/utils.c index 5d64083..af1a103 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 |