mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 20:55:20 +03:00
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 9761509f9ccc3892f42425b904adf1ef10bcb1f4 Mon Sep 17 00:00:00 2001
|
|
From: David Ostrovsky <david@ostrovsky.org>
|
|
Date: Wed, 16 Jun 2021 07:55:57 -0700
|
|
Subject: [PATCH] Fix building on gcc 11
|
|
|
|
Fixes #12702.
|
|
|
|
Without this include the build is failing with:
|
|
|
|
third_party/ijar/mapped_file_unix.cc: In constructor 'devtools_ijar::MappedOutputFile::MappedOutputFile(const char*, size_t)':
|
|
third_party/ijar/mapped_file_unix.cc:115:21: error: 'numeric_limits' is not a member of 'std'
|
|
115 | std::numeric_limits<size_t>::max());
|
|
| ^~~~~~~~~~~~~~
|
|
|
|
Closes #13537.
|
|
|
|
PiperOrigin-RevId: 379719635
|
|
---
|
|
third_party/ijar/mapped_file_unix.cc | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc
|
|
index 6e3a90871844..65179e3290ec 100644
|
|
--- a/third_party/ijar/mapped_file_unix.cc
|
|
+++ b/third_party/ijar/mapped_file_unix.cc
|
|
@@ -15,10 +15,11 @@
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
-#include <unistd.h>
|
|
#include <sys/mman.h>
|
|
+#include <unistd.h>
|
|
|
|
#include <algorithm>
|
|
+#include <limits>
|
|
|
|
#include "third_party/ijar/mapped_file.h"
|
|
|