Skip to content

Fix compilation with newer gcc

Steve Lhomme requested to merge robUx4/breakpad:gcc10-fix into master

Backported from

On glibc > 2.33, SIGSTKSZ might not be constant (in which case it expands to a call to sysconf which returns a long int); see

Pass unsigned explicitly to std::max, to avoid relying on template argument deduction. This works both with the old-style constant SIGSTKSZ and the new configurable one.

Initially based on

Change-Id: I9fc95337f973e871b84735ce822b5e11ba73ea8c Reviewed-on: Reviewed-by: Mark Mentovai

Merge request reports