summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@efl.so>2013-11-10 09:26:30 +0100
committerCedric BAIL <cedric@efl.so>2013-11-10 09:26:30 +0100
commita157813602b2527d29365acaba9a2ed741d220a4 (patch)
tree9d7c991abaed6031bc1716b3fc3ee5a0fb75204f /src
parentda559ee5d0403b145a334c26c5cf9c45cf03f40f (diff)
evas: use portable infrastructure to detect page size.
Diffstat (limited to 'src')
-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;