mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 12:42:11 +00:00
Fix for engine compile on FreeBSD.
This commit is contained in:
@@ -743,7 +743,7 @@ char * executable_path( char const * argv0 )
|
||||
{
|
||||
int mib[ 4 ] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
|
||||
char buf[ 1024 ];
|
||||
int32_t size = sizeof( buf );
|
||||
size_t size = sizeof( buf );
|
||||
sysctl( mib, 4, buf, &size, NULL, 0 );
|
||||
return ( !size || size == sizeof( buf ) ) ? NULL : strndup( buf, size );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user