head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.10.17.20.45.04; author alnsn; state Exp; branches; next ; commitid sg7Ek7DOz2n28SZG; desc @@ 1.1 log @Import math/HiGHS from wip, update to version 1.15.1. HiGHS is a high performance serial and parallel solver for large scale sparse linear programming (LP) problems of the form: Minimize c^Tx subject to L <= Ax <= U; l <= x <= u @ text @$NetBSD$ NetBSD has the XSI-compliant strerror_r(). --- extern/zstr/strict_fstream.hpp.orig 2026-10-17 00:31:20.154535413 +0000 +++ extern/zstr/strict_fstream.hpp @@@@ -64,7 +64,7 @@@@ static std::string strerror() } else { return "Unknown error (" + std::to_string(err_num) + ")"; } -#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && ! _GNU_SOURCE) || defined(__MUSL__) +#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && ! _GNU_SOURCE) || defined(__MUSL__) || defined(__NetBSD__) // XSI-compliant strerror_r() const int err_num = errno; // See above if (strerror_r(err_num, buff.data(), buff.size()) == 0) { @