AC_HEADER_DIRENT
AC_HEADER_TIME
EFL_CHECK_PATH_MAX
-AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h])
+AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h])
if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"
AC_CHECK_SIZEOF([wchar_t])
EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
AC_SUBST([EINA_SIZEOF_WCHAR_T])
+AC_CHECK_TYPES([siginfo_t], [], [],
+ [[#include <signal.h>
+ #if HAVE_SIGINFO_H
+ # include <siginfo.h>
+ #endif
+ ]])
### Checks for structures
# include "config.h"
#endif
-#ifndef _WIN32
+#ifdef HAVE_SIGINFO_T
#ifdef STDC_HEADERS
# include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
-# include <unistd.h>
+#include <unistd.h>
+
+#if HAVE_SIGINFO_H
+# include <siginfo.h>
+#endif
#endif
*============================================================================*/
static Eina_Bool mmap_safe = EINA_FALSE;
-#ifndef _WIN32
+#ifdef HAVE_SIGINFO_T
+
static int _eina_mmap_log_dom = -1;
static int _eina_mmap_zero_fd = -1;
static long _eina_mmap_pagesize = -1;
EAPI Eina_Bool
eina_mmap_safety_enabled_set(Eina_Bool enabled)
{
-#ifdef _WIN32
+#ifndef HAVE_SIGINFO_T
return EINA_FALSE;
#else
if (_eina_mmap_log_dom < 0)