Some of the includes already were unconditional, including both on Win32 and Unix.
It is part of ANSI C 89, albeit in a reduced form compared to typical Unix (no sigaction).
Remove configuration of MSG_NOSIGNAL which has no other uses.
Preserve configuration of signal.h temporarily due to other uses of ifdef HAVE_SIGNAL_H.
i.e. LLVM?
Commit migrated from https://github.com/mono/mono/commit/
fc390a5f2493ae908ccf2696c4ca675d82104db6
AC_CHECK_LIB(inotify, inotify_init, LIBS="$LIBS -linotify")
esac
- dnl *******************************
- dnl *** Checks for MSG_NOSIGNAL ***
- dnl *******************************
- AC_MSG_CHECKING(for MSG_NOSIGNAL)
- AC_TRY_COMPILE([#include <sys/socket.h>], [
- int f = MSG_NOSIGNAL;
- ], [
- # Yes, we have it...
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_MSG_NOSIGNAL, 1, [Have MSG_NOSIGNAL])
- ], [
- # We'll have to use signals
- AC_MSG_RESULT(no)
- ])
-
dnl *****************************
dnl *** Checks for IPPROTO_IP ***
dnl *****************************
#include <mono/utils/mono-error-internals.h>
#include <mono/utils/bsearch.h>
#include <string.h>
-//#include <signal.h>
#include <ctype.h>
#ifndef DISABLE_VERIFIER
#include <sys/wait.h>
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if defined(HOST_WIN32)
#include <objbase.h>
static void
summarizer_signal_other_threads (SummarizerGlobalState *state, MonoNativeThreadId current, int current_idx)
{
-#ifdef HAVE_SIGNAL_H
sigset_t sigset, old_sigset;
sigemptyset(&sigset);
sigaddset(&sigset, SIGTERM);
g_error ("pthread_kill () is not supported by this platform");
#endif
}
-#endif
}
// Returns true when there are shared global references to "this_thread"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#include <sys/time.h>
#include <fcntl.h>
#ifdef HAVE_SYS_PARAM_H
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h> /* defines SIOCATMARK */
#endif
-#ifndef HAVE_MSG_NOSIGNAL
#include <signal.h>
-#endif
#ifdef HAVE_SYS_SENDFILE_H
#include <sys/sendfile.h>
#endif
*/
#include <config.h>
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if HAVE_SCHED_SETAFFINITY
#include <sched.h>
#endif
#include <glib.h>
#include <string.h>
-
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_UCONTEXT_H
#include <ucontext.h>
#endif
#ifdef HOST_WIN32
#include <windows.h>
-/* use SIG* defines if possible */
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if !defined(_MSC_VER)
/* sigcontext surrogate */
guint64 edx;
guint64 ebp;
guint64 esp;
- guint64 esi;
+ guint64 esi;
guint64 edi;
guint64 eip;
};
#include <config.h>
#include <glib.h>
#include <string.h>
-
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#include <mono/utils/memcheck.h>
#ifdef HOST_WIN32
#include <windows.h>
-/* use SIG* defines if possible */
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
typedef void MONO_SIG_HANDLER_SIGNATURE ((*MonoW32ExceptionHandler));
#include "config.h"
#include <glib.h>
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "mono-compiler.h"
#include "mono-sigcontext.h"
#include "mono-machine.h"
-
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#define MONO_CONTEXT_OFFSET(field, index, field_type) \
"i" (offsetof (MonoContext, field) + (index) * sizeof (field_type))
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if defined(TARGET_X86)