From c8a58fc085c934d9b59b92b559ccf46097eeb082 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 21 May 2020 19:52:40 +0000 Subject: [PATCH] [PAL] Test for __x86_64__ rather than !__i386__ --- Pal/src/host/Linux/db_exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pal/src/host/Linux/db_exception.c b/Pal/src/host/Linux/db_exception.c index 80ae48df..79ee19b0 100644 --- a/Pal/src/host/Linux/db_exception.c +++ b/Pal/src/host/Linux/db_exception.c @@ -37,7 +37,7 @@ #include #include -#if !defined(__i386__) +#if defined(__x86_64__) /* In x86_64 kernels, sigaction is required to have a user-defined * restorer. Also, they not yet support SA_INFO. The reference: * http://lxr.linux.no/linux+v2.6.35/arch/x86/kernel/signal.c#L448 @@ -90,7 +90,7 @@ int set_sighandler (int * sigs, int nsig, void * handler) if (handler) { action.sa_handler = (void (*)(int)) handler; action.sa_flags = SA_SIGINFO | SA_ONSTACK; -#if !defined(__i386__) +#if defined(__x86_64__) action.sa_flags |= SA_RESTORER; action.sa_restorer = __restore_rt; #endif