diff options
author | Jan-Espen Oversand <sigsegv@radiotube.org> | 2025-06-23 22:06:01 +0900 |
---|---|---|
committer | Hiroki Tagato <tagattie@FreeBSD.org> | 2025-06-23 22:06:01 +0900 |
commit | 83ff85c6c74fcc3579b681441ebc5f5c7d298e9c (patch) | |
tree | 4c2b1822537d62c750215fd49d2fa48108ab295a /devel/cpprestsdk/files/patch-include_pplx_threadpool.h | |
parent | deskutils/gnome-shell-extension-manager: add port: Browse, install, and manag... (diff) |
devel/cpprestsdk: unbreak build with boost >=1.87 and take maintainership
While here, add test target.
Co-authored-by: Hiroki Tagato <tagattie@FreeBSD.org>
PR: 286905
Reported by: Jan-Espen Oversand <sigsegv@radiotube.org> (new maintainer)
Diffstat (limited to 'devel/cpprestsdk/files/patch-include_pplx_threadpool.h')
-rw-r--r-- | devel/cpprestsdk/files/patch-include_pplx_threadpool.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/cpprestsdk/files/patch-include_pplx_threadpool.h b/devel/cpprestsdk/files/patch-include_pplx_threadpool.h new file mode 100644 index 000000000000..e6a05d26b0d3 --- /dev/null +++ b/devel/cpprestsdk/files/patch-include_pplx_threadpool.h @@ -0,0 +1,21 @@ +--- include/pplx/threadpool.h.orig 2023-12-05 04:23:31 UTC ++++ include/pplx/threadpool.h +@@ -69,15 +69,15 @@ class threadpool (public) + CASABLANCA_DEPRECATED("Use `.service().post(task)` directly.") + void schedule(T task) + { +- service().post(task); ++ boost::asio::post(service(), task); + } + +- boost::asio::io_service& service() { return m_service; } ++ boost::asio::io_context& service() { return m_service; } + + protected: + threadpool(size_t num_threads) : m_service(static_cast<int>(num_threads)) {} + +- boost::asio::io_service m_service; ++ boost::asio::io_context m_service; + }; + + } // namespace crossplat |