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/utils.c | |
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/utils.c')
-rw-r--r-- | gdb/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |