summaryrefslogtreecommitdiff
path: root/external/breakpad/SIGSTKSZ.patch
blob: d37c58a2f84bd5a6e84dcc5ae14db1109bd8e7cc (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/client/linux/handler/exception_handler.cc
+++ src/client/linux/handler/exception_handler.cc
@@ -138,7 +138,7 @@
   // 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);
+  static const unsigned kSigStackSize = std::max<decltype(SIGSTKSZ)>(16384, SIGSTKSZ);
 
   // Only set an alternative stack if there isn't already one, or if the current
   // one is too small.