From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Henrique Cerri Subject: [PATCH] backfire: fix build failure for 4.11+ kernels Date: Tue, 11 Jul 2017 14:44:59 -0300 Message-ID: <1499795099-29710-1-git-send-email-marcelo.cerri@canonical.com> Cc: rt-users , Marcelo Henrique Cerri To: Clark Williams , John Kacur Return-path: Received: from mail-qt0-f171.google.com ([209.85.216.171]:36408 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932462AbdGKRpF (ORCPT ); Tue, 11 Jul 2017 13:45:05 -0400 Received: by mail-qt0-f171.google.com with SMTP id i2so87432qta.3 for ; Tue, 11 Jul 2017 10:45:05 -0700 (PDT) Sender: linux-rt-users-owner@vger.kernel.org List-ID: Since v4.11-rc1~18^2~76, kill_pid() is declared in "linux/sched/signal.h" instead of in "linux/sched.h". Include the correct header file based on the kernel version to keep it compatible with older kernels. Signed-off-by: Marcelo Henrique Cerri --- src/backfire/backfire.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backfire/backfire.c b/src/backfire/backfire.c index aaf9c4af8e00..7b3b5faf7a11 100644 --- a/src/backfire/backfire.c +++ b/src/backfire/backfire.c @@ -20,8 +20,13 @@ */ #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0) #include +#else +#include +#endif #include #include #include -- 2.7.4