forked from enlightenment/efl
efl: Remove check for siginfo.h and siginfo_t
SVN revision: 82579
This commit is contained in:
parent
8f86ee2065
commit
f60bfe38d6
10
configure.ac
10
configure.ac
|
@ -384,7 +384,6 @@ inttypes.h \
|
||||||
libgen.h \
|
libgen.h \
|
||||||
mcheck.h \
|
mcheck.h \
|
||||||
netinet/in.h \
|
netinet/in.h \
|
||||||
siginfo.h \
|
|
||||||
stdint.h \
|
stdint.h \
|
||||||
sys/epoll.h \
|
sys/epoll.h \
|
||||||
sys/inotify.h \
|
sys/inotify.h \
|
||||||
|
@ -417,15 +416,6 @@ AC_SUBST([EINA_SIZEOF_WCHAR_T])
|
||||||
AC_CHECK_SIZEOF(int, 4)
|
AC_CHECK_SIZEOF(int, 4)
|
||||||
AC_CHECK_SIZEOF(long, 4)
|
AC_CHECK_SIZEOF(long, 4)
|
||||||
|
|
||||||
AC_CHECK_TYPES([siginfo_t], [], [],
|
|
||||||
[[
|
|
||||||
#include <signal.h>
|
|
||||||
#if HAVE_SIGINFO_H
|
|
||||||
# include <siginfo.h>
|
|
||||||
#endif
|
|
||||||
]])
|
|
||||||
|
|
||||||
|
|
||||||
#### Checks for structures
|
#### Checks for structures
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SIGINFO_T
|
|
||||||
|
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
|
@ -43,12 +41,6 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#if HAVE_SIGINFO_H
|
|
||||||
# include <siginfo.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "eina_config.h"
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_log.h"
|
#include "eina_log.h"
|
||||||
|
@ -59,7 +51,6 @@
|
||||||
*============================================================================*/
|
*============================================================================*/
|
||||||
|
|
||||||
static Eina_Bool mmap_safe = EINA_FALSE;
|
static Eina_Bool mmap_safe = EINA_FALSE;
|
||||||
#ifdef HAVE_SIGINFO_T
|
|
||||||
|
|
||||||
static int _eina_mmap_log_dom = -1;
|
static int _eina_mmap_log_dom = -1;
|
||||||
static int _eina_mmap_zero_fd = -1;
|
static int _eina_mmap_zero_fd = -1;
|
||||||
|
@ -115,7 +106,6 @@ _eina_mmap_safe_sigbus(int sig EINA_UNUSED,
|
||||||
/* restore previous errno */
|
/* restore previous errno */
|
||||||
errno = perrno;
|
errno = perrno;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* API *
|
* API *
|
||||||
|
@ -124,10 +114,6 @@ _eina_mmap_safe_sigbus(int sig EINA_UNUSED,
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
eina_mmap_safety_enabled_set(Eina_Bool enabled)
|
eina_mmap_safety_enabled_set(Eina_Bool enabled)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_SIGINFO_T
|
|
||||||
(void) enabled;
|
|
||||||
return EINA_FALSE;
|
|
||||||
#else
|
|
||||||
if (_eina_mmap_log_dom < 0)
|
if (_eina_mmap_log_dom < 0)
|
||||||
{
|
{
|
||||||
_eina_mmap_log_dom = eina_log_domain_register("eina_mmap",
|
_eina_mmap_log_dom = eina_log_domain_register("eina_mmap",
|
||||||
|
@ -194,7 +180,6 @@ eina_mmap_safety_enabled_set(Eina_Bool enabled)
|
||||||
done:
|
done:
|
||||||
mmap_safe = enabled;
|
mmap_safe = enabled;
|
||||||
return mmap_safe;
|
return mmap_safe;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue