external/breakpad: Adpat to SIGSTKSZ type in glibc 2.34
commitc90cb1b3c265c1f81e614e47652fe24137d7928c
authorStephan Bergmann <sbergman@redhat.com>
Tue, 12 Oct 2021 12:42:05 +0000 (12 14:42 +0200)
committerStephan Bergmann <sbergman@redhat.com>
Tue, 12 Oct 2021 15:07:08 +0000 (12 17:07 +0200)
tree4789f9fc4e42b852aea24bf9df4f841983947355
parentcd1b2beb0d101ba7b7b83936262c5367094e9d01
external/breakpad: Adpat to SIGSTKSZ type in glibc 2.34

<https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53>
"sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305]" introduced
sysdeps/unix/sysv/linux/bits/sigstksz.h containing

> # define SIGSTKSZ sysconf (_SC_SIGSTKSZ)

so that SIGSTKSZ would have type long, causing

> src/client/linux/handler/exception_handler.cc: In function ‘void google_breakpad::{anonymous}::InstallAlternateStackLocked()’:
> src/client/linux/handler/exception_handler.cc:141:49: error: no matching function for call to ‘max(int, long int)’
>   141 |   static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
>       |                                         ~~~~~~~~^~~~~~~~~~~~~~~~~

when building ExternalProject_breakpad.  At least SuS4 appears to be silent
about a required type of SIGSTKSZ defined in signal.h.

Change-Id: I4d87017e10825ef051721f4e9ca751a77bb0d5c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123455
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
external/breakpad/SIGSTKSZ.patch [new file with mode: 0644]
external/breakpad/UnpackedTarball_breakpad.mk