Skip to content

Commit

Permalink
Fix building on gcc 11
Browse files Browse the repository at this point in the history
Fixes bazelbuild#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());
      |                     ^~~~~~~~~~~~~~
  • Loading branch information
davido committed May 29, 2021
1 parent 6ac57ca commit 9b12813
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/ijar/mapped_file_unix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <sys/mman.h>

#include <algorithm>
#include <limits>

#include "third_party/ijar/mapped_file.h"

Expand Down

0 comments on commit 9b12813

Please sign in to comment.