diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-23 21:54:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-23 21:54:25 +0000 |
commit | 27aac7ff48e06d83f102a463685bc61469c8265b (patch) | |
tree | cbe9eb2809627cded0e37797cb3c1b693a498abd /gdb/utils.c | |
parent | 65a6e0eee547e96f0d3d949faebb8cac90e01b0c (diff) | |
download | gdb-27aac7ff48e06d83f102a463685bc61469c8265b.zip gdb-27aac7ff48e06d83f102a463685bc61469c8265b.tar.gz gdb-27aac7ff48e06d83f102a463685bc61469c8265b.tar.bz2 |
* configure.in: (AC_CHECK_FUNCS) Added test for
canonicalize_file_name Regenerated.
* config.in, configure: Regenerated.
* utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
defined use canonicalize_file_name.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 627c89e..8646020 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2526,7 +2526,9 @@ string_to_core_addr (const char *my_string) char * gdb_realpath (const char *filename) { -#ifdef HAVE_REALPATH +#ifdef HAVE_CANONICALIZE_FILE_NAME + return canonicalize_file_name (filename); +#elif defined (HAVE_REALPATH) #if defined (PATH_MAX) char buf[PATH_MAX]; #elif defined (MAXPATHLEN) |