summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/evas/evas_cserve2_shm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/evas/evas_cserve2_shm.c b/src/bin/evas/evas_cserve2_shm.c
index 6ccfbcd2a4..b172c52242 100644
--- a/src/bin/evas/evas_cserve2_shm.c
+++ b/src/bin/evas/evas_cserve2_shm.c
@@ -40,12 +40,7 @@ cserve2_shm_size_normalize(size_t size, size_t align)
40 long pagesize; 40 long pagesize;
41 size_t normalized; 41 size_t normalized;
42 42
43 pagesize = sysconf(_SC_PAGESIZE); 43 pagesize = eina_cpu_page_size();
44 if (pagesize < 1)
45 {
46 ERR("sysconf() reported weird value for PAGESIZE, assuming 4096.");
47 pagesize = 4096;
48 }
49 44
50 if (align) 45 if (align)
51 align = ((align + pagesize - 1) / pagesize) * pagesize; 46 align = ((align + pagesize - 1) / pagesize) * pagesize;