From: Jacek Caban jacek@codeweavers.com
--- tools/tools.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/tools.h b/tools/tools.h index 69c976df0bf..b840a85b2e5 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -695,7 +695,8 @@ static inline char *get_bindir( const char *argv0 ) #ifndef _WIN32 char *dir = NULL;
-#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) \ + || defined(__CYGWIN__) || defined(__MSYS__) dir = realpath( "/proc/self/exe", NULL ); #elif defined (__FreeBSD__) || defined(__DragonFly__) static int pathname[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };