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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user