summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-08-29 09:54:17 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-08-29 09:54:34 +0900
commit62a759de4346c344983dd055dde47f8c7919c7a4 (patch)
tree4ed32f19659246f73e29aaff21fdcd82afc2ec4a /src/lib/evas/common
parentf69cde81076363d8b9a0ab7a10cd1df8498b1621 (diff)
evas: define MAP_HUGETLB when it is not defined.
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_image_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index 48a895fd53..82f3d8a569 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -141,6 +141,10 @@ _evas_common_rgba_image_surface_mmap(unsigned int w, unsigned int h, Eina_Bool a
141 siz = _evas_common_rgba_image_surface_size(w, h, alpha_only); 141 siz = _evas_common_rgba_image_surface_size(w, h, alpha_only);
142 142
143#ifdef HAVE_SYS_MMAN_H 143#ifdef HAVE_SYS_MMAN_H
144#ifndef MAP_HUGETLB
145# define MAP_HUGETLB 0
146#endif
147
144 if (siz < PAGE_SIZE) 148 if (siz < PAGE_SIZE)
145 return malloc(siz); 149 return malloc(siz);
146 150