From patchwork Mon Jul 22 16:14:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 1135056 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=t-online.de Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45smsf488Qz9sBZ for ; Tue, 23 Jul 2019 02:15:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E72C281420; Mon, 22 Jul 2019 16:14:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yBy+aZE6c7q4; Mon, 22 Jul 2019 16:14:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5358585CE2; Mon, 22 Jul 2019 16:14:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D16521BF35F for ; Mon, 22 Jul 2019 16:14:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CEBA02001C for ; Mon, 22 Jul 2019 16:14:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uJRDEHqATHOx for ; Mon, 22 Jul 2019 16:14:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by silver.osuosl.org (Postfix) with ESMTPS id 932DB20019 for ; Mon, 22 Jul 2019 16:14:53 +0000 (UTC) Received: from fwd33.aul.t-online.de (fwd33.aul.t-online.de [172.20.27.144]) by mailout05.t-online.de (Postfix) with SMTP id AC980421B306; Mon, 22 Jul 2019 18:14:51 +0200 (CEST) Received: from fli4l.lan.fli4l (rXvTUEZpghHPGTTspVgchel1cqAPD0gs7WozCl+qTOHeuXNYWsdnpNKSQpaFvb1QG5@[84.161.178.169]) by fwd33.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1hpaxe-0GEz680; Mon, 22 Jul 2019 18:14:50 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:54072) by fli4l.lan.fli4l with esmtp (Exim 4.92) (envelope-from ) id 1hpaxe-0001V7-0B; Mon, 22 Jul 2019 18:14:50 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Mon, 22 Jul 2019 18:14:49 +0200 Message-Id: <20190722161449.10624-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-ID: rXvTUEZpghHPGTTspVgchel1cqAPD0gs7WozCl+qTOHeuXNYWsdnpNKSQpaFvb1QG5 X-TOI-MSGID: d1b24999-84cc-4930-8cc5-422696daf04a Subject: [Buildroot] [PATCH 1/1] package/suricata: fix build with kernel >= 5.2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: http://autobuild.buildroot.net/results/422/422e1aa4e7d0bac31b55e7150a7ab031e23cef4a/ Signed-off-by: Bernd Kuhls --- ...et-fix-build-on-recent-Linux-kernels.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/suricata/0002-af-packet-fix-build-on-recent-Linux-kernels.patch diff --git a/package/suricata/0002-af-packet-fix-build-on-recent-Linux-kernels.patch b/package/suricata/0002-af-packet-fix-build-on-recent-Linux-kernels.patch new file mode 100644 index 0000000000..6547fd57f5 --- /dev/null +++ b/package/suricata/0002-af-packet-fix-build-on-recent-Linux-kernels.patch @@ -0,0 +1,28 @@ +From b37554e0bc3cf383e6547c5c6a69c6f6849c09e3 Mon Sep 17 00:00:00 2001 +From: Eric Leblond +Date: Wed, 17 Jul 2019 12:35:12 +0200 +Subject: [PATCH] af-packet: fix build on recent Linux kernels + +Downloaded from upstream commit +https://github.com/OISF/suricata/commit/b37554e0bc3cf383e6547c5c6a69c6f6849c09e3 + +Signed-off-by: Bernd Kuhls +--- + src/source-af-packet.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/source-af-packet.c b/src/source-af-packet.c +index 2c65ccbcf5..e117d36e5c 100644 +--- a/src/source-af-packet.c ++++ b/src/source-af-packet.c +@@ -65,6 +65,10 @@ + #include + #endif + ++#if HAVE_LINUX_SOCKIOS_H ++#include ++#endif ++ + #ifdef HAVE_PACKET_EBPF + #include "util-ebpf.h" + #include