mirror of
https://github.com/boostorg/build.git
synced 2026-02-21 15:02:19 +00:00
Use the FreeBSD way to detect the executable path also on kfreebsd (#126)
This commit is contained in:
committed by
GitHub
parent
dce955c816
commit
13ecd50cfa
@@ -395,7 +395,7 @@ char * executable_path( char const * argv0 )
|
||||
const char * execname = getexecname();
|
||||
return execname ? strdup( execname ) : NULL;
|
||||
}
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
# include <sys/sysctl.h>
|
||||
char * executable_path( char const * argv0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user