From 1701013dd0299c31f127c43ff6774b5bda4c2d1a Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 2 Jul 2007 18:11:14 +0000 Subject: [PATCH] The real Windows solution. This generate one more dependence when building on Windows (to the shlwapi.lib). This commit was SVN r15267. --- opal/util/path.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opal/util/path.c b/opal/util/path.c index 9a89257d6d..ecd427b195 100644 --- a/opal/util/path.c +++ b/opal/util/path.c @@ -22,6 +22,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#if defined(__WINDOWS__) +#include +#endif /* defined(__WINDOWS__) */ #include "opal/util/path.h" #include "opal/util/os_path.h" @@ -304,7 +307,7 @@ char* opal_find_absolute_path( char* app_name ) #if !defined(__WINDOWS__) realpath( abs_app_name, resolved_path ); #else - _fullpath( resolved_path, abs_app_name, PATH_MAX ); + PathCanonicalize(resolved_path, abs_app_name); #endif /* !defined(__WINDOWS__) */ if( abs_app_name != app_name ) free(abs_app_name); return strdup(resolved_path);