diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com> | 2015-01-21 12:14:18 +0200 |
---|---|---|
committer | Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com> | 2015-01-26 12:07:44 +0100 |
commit | c883603035dc0329c2d2ced12b24124fbb90f3d8 (patch) | |
tree | e103e376e46c63ba4a2bd017533b025664cfda2c /src/3rdparty | |
parent | 4d76e4fd35e90356b3115fb64df853849f4ffcbc (diff) |
Use sysconf function for getting memory page size
Function getpagesize is deprecated and should not be used.
Change-Id: I4d4827662b2e8cb1e668129491a11d58f6722a1d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/masm/wtf/PageBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/masm/wtf/PageBlock.cpp b/src/3rdparty/masm/wtf/PageBlock.cpp index a6f5585925..e715ed262a 100644 --- a/src/3rdparty/masm/wtf/PageBlock.cpp +++ b/src/3rdparty/masm/wtf/PageBlock.cpp @@ -44,7 +44,7 @@ static size_t s_pageMask; inline size_t systemPageSize() { - return getpagesize(); + return ::sysconf(_SC_PAGESIZE); } #elif OS(WINDOWS) |