head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.10.26.07.39.21; author wiz; state Exp; branches; next ; commitid ToUVXqUxgMLTuX0H; desc @@ 1.1 log @py-xgboost: fix build on NetBSD Fix pkglint while here. @ text @$NetBSD$ In file included from /tmp/math/py-xgboost/work/xgboost-3.4.1/cpp_src/src/tree/hist/sampler.cc:4: /tmp/math/py-xgboost/work/xgboost-3.4.1/cpp_src/src/tree/hist/sampler.h: In function 'float xgboost::tree::SamplingProbability(float, float)': /tmp/math/py-xgboost/work/xgboost-3.4.1/cpp_src/src/tree/hist/sampler.h:66:9: error: '::isinf' has not been declared; did you mean 'std::isinf'? 66 | if (::isinf(u)) { | ^~~~~ | std::isinf --- cpp_src/src/tree/hist/sampler.h.orig 2026-10-26 07:21:07.904416272 +0000 +++ cpp_src/src/tree/hist/sampler.h @@@@ -63,7 +63,7 @@@@ XGBOOST_DEVICE inline float SamplingProbability(float XGBOOST_DEVICE inline float SamplingProbability(float u, float reg_abs_grad) { // An infinite threshold represents an empty sampling budget exactly. - if (::isinf(u)) { + if (std::isinf(u)) { return 0.0f; } if (::fabs(u) < kRtEps) { @