cedric pushed a commit to branch master.
commit 62a759de4346c344983dd055dde47f8c7919c7a4
Author: Cedric Bail <[email protected]>
Date: Thu Aug 29 09:54:17 2013 +0900
evas: define MAP_HUGETLB when it is not defined.
---
src/lib/evas/common/evas_image_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lib/evas/common/evas_image_main.c
b/src/lib/evas/common/evas_image_main.c
index 48a895f..82f3d8a 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
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);
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk