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 <>
Differential Revision:
This commit is contained in:
Vincent Torri 2019-08-05 11:27:16 +00:00 committed by Marcel Hollerbach
parent 660d993752
commit 5536bcd90e
2 changed files with 2 additions and 6 deletions

View File

@ -205,10 +205,6 @@ if (cc.has_header_symbol('sys/stat.h', 'fstatat'))
config_h.set10('HAVE_ATFILE_SOURCE', true)
if (cc.has_header('sys/mman.h'))
config_h.set10('HAVE_MMAN_H', true)
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)

View File

@ -4,7 +4,7 @@
#include <Elementary.h>
#include "elm_priv.h"
#ifdef HAVE_MMAN_H
# include <sys/mman.h>
@ -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;