From 0b6908b7a36382f67382920776fe31e1d2370e29 Mon Sep 17 00:00:00 2001 From: Dutchman101 <12105539+Dutchman101@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:00:56 +0000 Subject: [PATCH] breakpad: Fix build error on glibc > 2.33 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit cherry-picks https://github.com/google/breakpad/commit/605c51ed96ad44b34c457bbca320e74e194c317e in order to make MTA Server buildable in Linux environments that use glibc 2.33 or newer, such as for MTA commonly Debian 12/12.1 that uses glibc 2.36 error: no matching function for call to ‘max(int, long int)’ :line: static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); --- .../src/client/linux/handler/exception_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/google-breakpad/src/client/linux/handler/exception_handler.cc b/vendor/google-breakpad/src/client/linux/handler/exception_handler.cc index cd94e3b5e5..1922349a6d 100644 --- a/vendor/google-breakpad/src/client/linux/handler/exception_handler.cc +++ b/vendor/google-breakpad/src/client/linux/handler/exception_handler.cc @@ -138,7 +138,7 @@ void InstallAlternateStackLocked() { // SIGSTKSZ may be too small to prevent the signal handlers from overrunning // the alternative stack. Ensure that the size of the alternative stack is // large enough. - static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); + const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); // Only set an alternative stack if there isn't already one, or if the current // one is too small.