Skip to content

Commit

Permalink
breakpad: Fix build error on glibc > 2.33
Browse files Browse the repository at this point in the history
This commit cherry-picks google/breakpad@605c51e 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);
  • Loading branch information
Dutchman101 committed Sep 25, 2023
1 parent d431e5e commit 0b6908b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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<unsigned>(16384, SIGSTKSZ);

// Only set an alternative stack if there isn't already one, or if the current
// one is too small.
Expand Down

0 comments on commit 0b6908b

Please sign in to comment.