From 2df9fc3e8ccb49aa213b6f44c6920448daa11515 Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Thu, 8 Jan 2015 11:57:45 -0500 Subject: [PATCH] [utils] Don't enable usage of sigaction unless the function is available. --- mono/utils/mono-context.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mono/utils/mono-context.h b/mono/utils/mono-context.h index 3b01b49f066..d96eb759ef2 100755 --- a/mono/utils/mono-context.h +++ b/mono/utils/mono-context.h @@ -30,7 +30,9 @@ /*HACK, move this to an eventual mono-signal.c*/ #if defined( __linux__) || defined(__sun) || defined(__APPLE__) || defined(__NetBSD__) || \ defined(__FreeBSD__) || defined(__OpenBSD__) -#define MONO_SIGNAL_USE_SIGACTION +#ifdef HAVE_SIGACTION +#define MONO_SIGNAL_USE_SIGACTION 1 +#endif #endif #if defined(__native_client__) @@ -148,7 +150,9 @@ typedef struct { #if !defined( HOST_WIN32 ) && !defined(__native_client__) && !defined(__native_client_codegen__) +#ifdef HAVE_SIGACTION #define MONO_SIGNAL_USE_SIGACTION 1 +#endif #endif -- 2.25.1