mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Use sysconf(_SC_PAGESIZE) instead of getpagesize().
Bug: 11563061 Change-Id: I1350f0b1cb8e2bf17cdce34b7429763bbb6b2856
This commit is contained in:
parent
acf515ee6a
commit
75534b98ca
@ -35,7 +35,7 @@ namespace latinime {
|
||||
AKLOGE("DICT: Can't open the source. path=%s errno=%d", path, errno);
|
||||
return MmappedBufferPtr(0);
|
||||
}
|
||||
const int pagesize = getpagesize();
|
||||
const int pagesize = sysconf(_SC_PAGESIZE);
|
||||
const int offset = bufferOffset % pagesize;
|
||||
int alignedOffset = bufferOffset - offset;
|
||||
int alignedSize = bufferSize + offset;
|
||||
|
Loading…
Reference in New Issue
Block a user