summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--header_checks/meson.build4
-rw-r--r--src/lib/elementary/efl_ui_selection_manager.c4
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'))
205 config_h.set10('HAVE_ATFILE_SOURCE', true) 205 config_h.set10('HAVE_ATFILE_SOURCE', true)
206endif 206endif
207 207
208if (cc.has_header('sys/mman.h'))
209 config_h.set10('HAVE_MMAN_H', true)
210endif
211
212if sys_linux and config_h.has('HAVE_LISTXATTR') and config_h.has('HAVE_SETXATTR') and config_h.has('HAVE_GETXATTR') 208if sys_linux and config_h.has('HAVE_LISTXATTR') and config_h.has('HAVE_SETXATTR') and config_h.has('HAVE_GETXATTR')
213 config_h.set10('HAVE_XATTR', true) 209 config_h.set10('HAVE_XATTR', true)
214endif 210endif
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 @@
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#include "elm_priv.h" 6#include "elm_priv.h"
7#ifdef HAVE_MMAN_H 7#ifdef HAVE_SYS_MMAN_H
8# include <sys/mman.h> 8# include <sys/mman.h>
9#endif 9#endif
10 10
@@ -257,7 +257,7 @@ _update_sel_lost_list(Efl_Object *obj, Efl_Ui_Selection_Type type,
257static Tmp_Info * 257static Tmp_Info *
258_tempfile_new(int size) 258_tempfile_new(int size)
259{ 259{
260#ifdef HAVE_MMAN_H 260#ifdef HAVE_MMAP
261 Tmp_Info *info; 261 Tmp_Info *info;
262 const char *tmppath = NULL; 262 const char *tmppath = NULL;
263 mode_t cur_umask; 263 mode_t cur_umask;