mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
From bfe5ab6adadda265d575fec9c192e6f53f2ef9f5 Mon Sep 17 00:00:00 2001
|
|
From: Kohei Yoshida <kohei.yoshida@gmail.com>
|
|
Date: Fri, 4 Apr 2025 21:08:55 -0400
|
|
Subject: [PATCH] Update boost.m4 from the latest upstream
|
|
|
|
---
|
|
m4/boost.m4 | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/m4/boost.m4 b/m4/boost.m4
|
|
index 706035d3..342516e4 100644
|
|
--- a/m4/boost.m4
|
|
+++ b/m4/boost.m4
|
|
@@ -1332,11 +1332,16 @@ BOOST_DEFUN([String_Algo],
|
|
# --------------------------------
|
|
# Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the
|
|
# documentation of BOOST_FIND_LIB above. This library was introduced in Boost
|
|
-# 1.35.0.
|
|
+# 1.35.0 and is header only since 1.70.
|
|
BOOST_DEFUN([System],
|
|
-[BOOST_FIND_LIB([system], [$1],
|
|
+[
|
|
+if test $boost_major_version -ge 170; then
|
|
+ BOOST_FIND_HEADER([boost/system/error_code.hpp])
|
|
+else
|
|
+ BOOST_FIND_LIB([system], [$1],
|
|
[boost/system/error_code.hpp],
|
|
[boost::system::error_code e; e.clear();], [], [], [$2])
|
|
+fi
|
|
])# BOOST_SYSTEM
|
|
|
|
|
|
--
|
|
GitLab
|
|
|