net-analyzer/suricata: fixed build error related with SIOCGSTAMP
authorSlawomir Lis <slis@gentoo.org>
Sun, 8 Sep 2019 18:58:59 +0000 (20:58 +0200)
committerSlawomir Lis <slis@gentoo.org>
Sun, 8 Sep 2019 19:24:40 +0000 (21:24 +0200)
Closes: https://bugs.gentoo.org/692546
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Slawek Lis <slis@gentoo.org>
net-analyzer/suricata/files/suricata-4.0.4_sockios.patch [new file with mode: 0644]
net-analyzer/suricata/suricata-4.0.4.ebuild

diff --git a/net-analyzer/suricata/files/suricata-4.0.4_sockios.patch b/net-analyzer/suricata/files/suricata-4.0.4_sockios.patch
new file mode 100644 (file)
index 0000000..a341d9c
--- /dev/null
@@ -0,0 +1,13 @@
+--- src/source-af-packet.c.orig        2019-09-08 20:50:06.416466432 +0200
++++ src/source-af-packet.c     2019-09-08 20:53:26.144471385 +0200
+@@ -70,6 +70,10 @@
+ #ifdef HAVE_AF_PACKET
++#ifdef HAVE_LINUX_SOCKIOS_H
++#include <linux/sockios.h>
++#endif
++
+ #if HAVE_SYS_IOCTL_H
+ #include <sys/ioctl.h>
+ #endif
index 2622dccdb3b78b03dfe19712e0807a5fec4a38a6..f476bfe2ae24f44bdcd1d5c4fcee456830bf9017 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -46,7 +46,8 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}_configure-lua-flags.patch
+       epatch "${FILESDIR}/${P}_configure-lua-flags.patch"
+       epatch "${FILESDIR}/${P}_sockios.patch"
        eautoreconf
 }