From 01b987df59154f87a5ed8688c272f0a04bc8c4c9 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 19 Aug 2019 09:55:12 -0400 Subject: make mman.h private Summary: integrate mman.h to make Evil private to the EFL, as mman.h does not exist on Windows. After a discussion with raster, i include sys/mman.h only on non Windows platform. One issue, though, is that src/modules/emotion/generic/Emotion_Generic_Plugin.h has inlined functions using mmap() Test Plan: compilation on Windows Reviewers: cedric, raster, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9542 --- src/lib/ecore_evas/ecore_evas.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/ecore_evas') diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index 18c251f007..9d2d4d10f1 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -14,7 +14,9 @@ #include #include -#if defined(HAVE_SYS_MMAN_H) || defined(_WIN32) +#ifdef _WIN32 +# include /* mmap */ +#else # include #endif -- cgit v1.2.1