2
0
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:
Rene Rivera
2020-09-17 09:22:25 -05:00
parent 6026697837
commit add4dfcd4f

View File

@@ -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 );
}