2
0
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:
Laurent Bigonville
2022-02-13 04:30:05 +01:00
committed by GitHub
parent dce955c816
commit 13ecd50cfa

View File

@@ -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 )
{