evas: define MAP_HUGETLB when it is not defined.

This commit is contained in:
Cedric Bail 2013-08-29 09:54:17 +09:00
parent f69cde8107
commit 62a759de43
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ _evas_common_rgba_image_surface_mmap(unsigned int w, unsigned int h, Eina_Bool a
siz = _evas_common_rgba_image_surface_size(w, h, alpha_only);
#ifdef HAVE_SYS_MMAN_H
#ifndef MAP_HUGETLB
# define MAP_HUGETLB 0
#endif
if (siz < PAGE_SIZE)
return malloc(siz);