Use sysconf function for getting memory page size
authorPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
Wed, 21 Jan 2015 10:14:18 +0000 (12:14 +0200)
committerPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
Mon, 26 Jan 2015 11:07:44 +0000 (12:07 +0100)
Function getpagesize is deprecated and should not be used.

Change-Id: I4d4827662b2e8cb1e668129491a11d58f6722a1d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/3rdparty/masm/wtf/PageBlock.cpp

index a6f5585..e715ed2 100644 (file)
@@ -44,7 +44,7 @@ static size_t s_pageMask;
 
 inline size_t systemPageSize()
 {
-    return getpagesize();
+    return ::sysconf(_SC_PAGESIZE);
 }
 
 #elif OS(WINDOWS)