2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-23 15:42:14 +00:00

Use /proc/self/exe for executable_path on Cygwin (#644)

This commit is contained in:
David McFarland
2020-08-29 01:54:24 -03:00
committed by GitHub
parent 64248802f8
commit 1da0fe27d1

View File

@@ -747,7 +747,7 @@ char * executable_path( char const * argv0 )
sysctl( mib, 4, buf, &size, NULL, 0 );
return ( !size || size == sizeof( buf ) ) ? NULL : strndup( buf, size );
}
#elif defined(__linux__)
#elif defined(__linux__) || defined(__CYGWIN__)
# include <unistd.h>
char * executable_path( char const * argv0 )
{