fix build
[LibreOffice.git] / external / breakpad / SIGSTKSZ.patch
blobd37c58a2f84bd5a6e84dcc5ae14db1109bd8e7cc
1 --- src/client/linux/handler/exception_handler.cc
2 +++ src/client/linux/handler/exception_handler.cc
3 @@ -138,7 +138,7 @@
4 // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
5 // the alternative stack. Ensure that the size of the alternative stack is
6 // large enough.
7 - static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
8 + static const unsigned kSigStackSize = std::max<decltype(SIGSTKSZ)>(16384, SIGSTKSZ);
10 // Only set an alternative stack if there isn't already one, or if the current
11 // one is too small.