use HAVE_SYS_MMAN_H when including sys/mman.h and HAVE_MMAP when using mmap()
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9494
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
#include <Elementary.h>
#include "elm_priv.h"
-#ifdef HAVE_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
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;