aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/spl/spl-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/os/linux/spl/spl-thread.c')
-rw-r--r--module/os/linux/spl/spl-thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/os/linux/spl/spl-thread.c b/module/os/linux/spl/spl-thread.c
index 0ba4c18c1..16d2ca1b1 100644
--- a/module/os/linux/spl/spl-thread.c
+++ b/module/os/linux/spl/spl-thread.c
@@ -188,7 +188,12 @@ issig(int why)
spin_lock_irq(&task->sighand->siglock);
int ret;
+#ifdef HAVE_DEQUEUE_SIGNAL_4ARG
+ enum pid_type __type;
+ if ((ret = dequeue_signal(task, &set, &__info, &__type)) != 0) {
+#else
if ((ret = dequeue_signal(task, &set, &__info)) != 0) {
+#endif
#ifdef HAVE_SIGNAL_STOP
spin_unlock_irq(&task->sighand->siglock);
kernel_signal_stop();