bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5536bcd90e5f943c843b1f406c762ea83778ebdf

commit 5536bcd90e5f943c843b1f406c762ea83778ebdf
Author: Vincent Torri <[email protected]>
Date:   Mon Aug 5 11:27:16 2019 +0000

    remove useless definition of the macro HAVE_MMAN_H
    
    use HAVE_SYS_MMAN_H when including sys/mman.h and HAVE_MMAP when using 
mmap()
    
    Reviewed-by: Marcel Hollerbach <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D9494
---
 header_checks/meson.build                     | 4 ----
 src/lib/elementary/efl_ui_selection_manager.c | 4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/header_checks/meson.build b/header_checks/meson.build
index 4f71dbde5c..cf16f61179 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -205,10 +205,6 @@ if (cc.has_header_symbol('sys/stat.h', 'fstatat'))
   config_h.set10('HAVE_ATFILE_SOURCE', true)
 endif
 
-if (cc.has_header('sys/mman.h'))
-  config_h.set10('HAVE_MMAN_H', true)
-endif
-
 if sys_linux and config_h.has('HAVE_LISTXATTR') and 
config_h.has('HAVE_SETXATTR') and config_h.has('HAVE_GETXATTR')
   config_h.set10('HAVE_XATTR', true)
 endif
diff --git a/src/lib/elementary/efl_ui_selection_manager.c 
b/src/lib/elementary/efl_ui_selection_manager.c
index 0963abc027..59b96858f8 100644
--- a/src/lib/elementary/efl_ui_selection_manager.c
+++ b/src/lib/elementary/efl_ui_selection_manager.c
@@ -4,7 +4,7 @@
 
 #include <Elementary.h>
 #include "elm_priv.h"
-#ifdef HAVE_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
 # include <sys/mman.h>
 #endif
 
@@ -257,7 +257,7 @@ _update_sel_lost_list(Efl_Object *obj, 
Efl_Ui_Selection_Type type,
 static Tmp_Info *
 _tempfile_new(int size)
 {
-#ifdef HAVE_MMAN_H
+#ifdef HAVE_MMAP
    Tmp_Info *info;
    const char *tmppath = NULL;
    mode_t cur_umask;

-- 


Reply via email to