Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/parser/tst_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ struct ParserWrapper
uint8_t *allocateMemory(size_t);
void freeMemory();

#if defined(Q_PROCESSOR_X86)
static const size_t PageSize = 4096;
#else
static inline const size_t PageSize = getpagesize();
#endif
static inline size_t mmapAllocation(size_t n)
{
// round up and add one page
Expand Down
Loading