gentoo/sci-libs/ceres-solver/files/ceres-solver-2.2.0-include-algorithm.patch
Paul Zander 1ae3d18987
sci-libs/ceres-solver: fix build with GCC 15
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38270
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2024-08-24 21:45:45 +02:00

19 lines
434 B
Diff

From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Wed, 21 Aug 2024 20:19:25 +0200
Subject: [PATCH] include algorithm
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
--- a/internal/ceres/cuda_streamed_buffer.h
+++ b/internal/ceres/cuda_streamed_buffer.h
@@ -34,6 +34,9 @@
#include "ceres/internal/config.h"
#ifndef CERES_NO_CUDA
+
+#include <algorithm>
+
#include "ceres/cuda_buffer.h"
namespace ceres::internal {