File: import-sockio-h.patch

package info (click to toggle)
suricata 1%3A8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240,768 kB
  • sloc: ansic: 357,749; python: 8,750; sh: 5,043; makefile: 2,415; perl: 570; php: 170
file content (16 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Eric Leblond <eric@regit.org>
Date: Wed, 17 Jul 2019 12:35:12 +0200
Subject: [PATCH] af-packet: fix build on recent Linux kernels
--- a/src/source-af-packet.c
+++ b/src/source-af-packet.c
@@ -71,6 +71,10 @@
 #include <linux/sockios.h>
 #endif
 
+#if HAVE_LINUX_SOCKIOS_H
+#include <linux/sockios.h>
+#endif
+
 #ifdef HAVE_PACKET_EBPF
 #define PCAP_DONT_INCLUDE_PCAP_BPF_H 1
 #include <bpf/libbpf.h>