evas: use portable infrastructure to detect page size.

This commit is contained in:
Cedric BAIL 2013-11-10 09:26:30 +01:00
parent da559ee5d0
commit a157813602
1 changed files with 1 additions and 6 deletions

View File

@ -40,12 +40,7 @@ cserve2_shm_size_normalize(size_t size, size_t align)
long pagesize;
size_t normalized;
pagesize = sysconf(_SC_PAGESIZE);
if (pagesize < 1)
{
ERR("sysconf() reported weird value for PAGESIZE, assuming 4096.");
pagesize = 4096;
}
pagesize = eina_cpu_page_size();
if (align)
align = ((align + pagesize - 1) / pagesize) * pagesize;