https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
24 lines
660 B
Diff
24 lines
660 B
Diff
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc
|
|
index 6e3a908..030e9ca 100644
|
|
--- a/third_party/ijar/mapped_file_unix.cc
|
|
+++ b/third_party/ijar/mapped_file_unix.cc
|
|
@@ -19,6 +19,7 @@
|
|
#include <sys/mman.h>
|
|
|
|
#include <algorithm>
|
|
+#include <limits>
|
|
|
|
#include "third_party/ijar/mapped_file.h"
|
|
|
|
diff --git a/third_party/ijar/zlib_client.h b/third_party/ijar/zlib_client.h
|
|
index ed66163..c4b051e 100644
|
|
--- a/third_party/ijar/zlib_client.h
|
|
+++ b/third_party/ijar/zlib_client.h
|
|
@@ -16,6 +16,7 @@
|
|
#define THIRD_PARTY_IJAR_ZLIB_CLIENT_H_
|
|
|
|
#include <limits.h>
|
|
+#include <limits>
|
|
|
|
#include "third_party/ijar/common.h"
|
|
|