devel/boost-libs: Fix broken function program_location_impl

... in include/boost/dll/detail/posix/program_location_impl.hpp

This function is FreeBSD-specific.

Fixed error:
error: use of undeclared identifier 'buf'

Approved by:	office@FreeBSD.org (maintainer's timeout; 14 days)

PR:		287514
This commit is contained in:
Yuri Victorovich
2025-06-27 07:49:19 -07:00
parent 19f40abed2
commit f9b3032162
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PORTNAME= boost-libs
PORTREVISION?= 0
PORTREVISION?= 1
COMMENT= Free portable C++ libraries (without Boost.Python)
WWW= https://www.boost.org/
@@ -0,0 +1,11 @@
--- boost/dll/detail/posix/program_location_impl.hpp.orig 2025-06-14 19:35:17 UTC
+++ boost/dll/detail/posix/program_location_impl.hpp
@@ -70,7 +70,7 @@ namespace boost { namespace dll { namespace detail {
mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1;
char path[1024];
- size_t size = sizeof(buf);
+ size_t size = sizeof(path);
if (sysctl(mib, 4, path, &size, nullptr, 0) == 0)
return boost::dll::fs::path(path);