2002-02-27 Rodney Brown <rbrown64@csc.com.au>
* utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
This commit is contained in:
parent
58caa3dcdb
commit
b84911e820
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue