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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user