File chromium-116-abseil-limits-include.patch of Package chromium.18040
From 94d77fe3604dd86b5198f942110c240f01242439 Mon Sep 17 00:00:00 2001
From: Derek Mauro <dmauro@google.com>
Date: Tue, 20 Jun 2023 12:58:51 -0700
Subject: [PATCH] Add missing #include <limits>
Fixes #1482
PiperOrigin-RevId: 542023050
Change-Id: Iba712083edc9a24732a71f51be22ea970115809c
---
absl/debugging/internal/stacktrace_aarch64-inl.inc | 1 +
1 file changed, 1 insertion(+)
---
https://github.com/abseil/abseil-cpp/issues/1482
https://github.com/abseil/abseil-cpp/commit/94d77fe3604dd86b5198f942110c240f01242439
[ 1725s] In file included from ../third_party/abseil-cpp/absl/debugging/stacktrace.cc:46:
[ 1725s] ../third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc:26:10: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
[ 1725s] std::numeric_limits<size_t>::max() - sizeof(void *);
[ 1725s] ^
[ 1725s] /usr/bin/../lib64/gcc/aarch64-suse-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
[ 1725s] struct numeric_limits;
[ 1725s] ^
[ 1725s] 1 error generated.
Index: chromium-116.0.5845.82/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc
===================================================================
--- chromium-116.0.5845.82.orig/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc
+++ chromium-116.0.5845.82/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc
@@ -13,6 +13,7 @@
#include <cassert>
#include <cstdint>
#include <iostream>
+#include <limits>
#include "absl/base/attributes.h"
#include "absl/debugging/internal/address_is_readable.h"