diff --git a/trunk/user/zerotier/0010-fix-inja-std-round.patch b/trunk/user/zerotier/0010-fix-inja-std-round.patch new file mode 100644 index 0000000000..748a766562 --- /dev/null +++ b/trunk/user/zerotier/0010-fix-inja-std-round.patch @@ -0,0 +1,19 @@ +--- a/ext/inja/inja.hpp 2023-03-08 05:51:02 ++++ b/ext/inja/inja.hpp 2022-11-04 13:49:13 +@@ -25,6 +25,7 @@ + #ifndef INCLUDE_INJA_INJA_HPP_ + #define INCLUDE_INJA_INJA_HPP_ + ++#include + #include + + namespace inja { +@@ -2456,7 +2457,7 @@ + case Op::Round: { + const auto args = get_arguments<2>(node); + const int precision = args[1]->get(); +- const double result = std::round(args[0]->get() * std::pow(10.0, precision)) / std::pow(10.0, precision); ++ const double result = round(args[0]->get() * std::pow(10.0, precision)) / std::pow(10.0, precision); + if (precision == 0) { + make_result(int(result)); + } else { diff --git a/trunk/user/zerotier/Makefile b/trunk/user/zerotier/Makefile index 5dcce5583e..8c2b471e30 100755 --- a/trunk/user/zerotier/Makefile +++ b/trunk/user/zerotier/Makefile @@ -1,4 +1,4 @@ -SRC_NAME = ZeroTierOne-1.10.2 +SRC_NAME = ZeroTierOne-1.10.4 THISDIR = $(shell pwd) FLAGS := DEFS="" CFLAGS := -Os -ffunction-sections -fdata-sections @@ -13,6 +13,7 @@ extract_test: patch -d $(SRC_NAME) -p1 -i ../0002-remove-pie.patch; \ patch -d $(SRC_NAME) -p1 -i ../0007-add-cerrno-header-for-str-errno.patch ; \ patch -d $(SRC_NAME) -p1 -i ../0009-fix-set-mac-and-change-confpath.patch ; \ + patch -d $(SRC_NAME) -p1 -i ../0010-fix-inja-std-round.patch ; \ fi ; config_test: diff --git a/trunk/user/zerotier/ZeroTierOne-1.10.2.tar.gz b/trunk/user/zerotier/ZeroTierOne-1.10.2.tar.gz deleted file mode 100755 index b888f37ad6..0000000000 Binary files a/trunk/user/zerotier/ZeroTierOne-1.10.2.tar.gz and /dev/null differ