]> granicus.if.org Git - strace/commitdiff
Remove HAVE_SIGACTION checks
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 17:44:33 +0000 (17:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 17:44:33 +0000 (17:44 +0000)
The syscall parsers guarded by HAVE_SIGACTION check have to be compiled
regardless of libc sigaction function availability.

* configure.ac (AC_CHECK_FUNCS): Remove sigaction.
* signal.c: Remove HAVE_SIGACTION checks.

configure.ac
signal.c

index 916bc3489f28018889899eb0f0515b9e03871067..5048de3153ab4939cabda90c92d53df1612226fc 100644 (file)
@@ -295,7 +295,6 @@ AC_CHECK_FUNCS(m4_normalize([
        preadv
        process_vm_readv
        pwritev
-       sigaction
        signalfd
        stpcpy
        strerror
index 5b530cf4eb7f72e1d175b96f3fca30bde4c9c7da..3170e48002172ea819a5c779efa2a723f1c429b1 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -258,8 +258,6 @@ SYS_FUNC(sigsetmask)
        return 0;
 }
 
-#ifdef HAVE_SIGACTION
-
 struct old_sigaction {
        /* sa_handler may be a libc #define, need to use other name: */
 #ifdef MIPS
@@ -391,8 +389,6 @@ SYS_FUNC(signal)
        return 0;
 }
 
-#endif /* HAVE_SIGACTION */
-
 SYS_FUNC(siggetmask)
 {
        if (exiting(tcp)) {
@@ -408,8 +404,6 @@ SYS_FUNC(sigsuspend)
        return RVAL_DECODED;
 }
 
-#ifdef HAVE_SIGACTION
-
 /* "Old" sigprocmask, which operates with word-sized signal masks */
 SYS_FUNC(sigprocmask)
 {
@@ -447,8 +441,6 @@ SYS_FUNC(sigprocmask)
        return 0;
 }
 
-#endif /* HAVE_SIGACTION */
-
 SYS_FUNC(kill)
 {
        tprintf("%d, %s",