Skip to content

Commit b013c7b

Browse files
yselkowitzsekrit-twc
authored andcommitted
Fix build with GCC 15
``` src/testcommon/mmap.cpp: In member function 'void MemoryMappedFile::impl::map_file(const char*, int, int, int)': src/testcommon/mmap.cpp:273:62: error: 'PTRDIFF_MAX' was not declared in this scope 273 | if ((file_size = posix::get_file_size(fd)) > PTRDIFF_MAX) | ^~~~~~~~~~~ src/testcommon/mmap.cpp:22:1: note: 'PTRDIFF_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' ```
1 parent 9a9a8ea commit b013c7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/testcommon/mmap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <Windows.h>
1111
#else
1212
#include <cerrno>
13+
#include <cstdint>
1314

1415
#include <fcntl.h>
1516
#include <unistd.h>

0 commit comments

Comments
 (0)