1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Add include for <limits> to allow correct build of ijar binaries
Also add include for <stdexcept> to allow proper builds on non-amd64 systems
Origin: upstream
https://github.com/bazelbuild/bazel/issues/12756#issuecomment-1003685465
Forwarded: not-needed
Last-Update: 2022-09-27
--- 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"
--- a/third_party/ijar/zlib_client.h
+++ b/third_party/ijar/zlib_client.h
@@ -17,6 +17,9 @@
#include <limits.h>
+#include <limits>
+#include <stdexcept>
+
#include "third_party/ijar/common.h"
namespace devtools_ijar {
|