From c990f18f4c233eabcd4e3981ade615d480aea093 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 16 Nov 2023 13:08:33 -0800 Subject: [PATCH] snort3: fix compilation with gcc13 Missing header. Signed-off-by: Rosen Penev --- net/snort3/Makefile | 2 +- net/snort3/patches/010-gcc13.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 net/snort3/patches/010-gcc13.patch diff --git a/net/snort3/Makefile b/net/snort3/Makefile index 2849135b20..5e452d1803 100644 --- a/net/snort3/Makefile +++ b/net/snort3/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=snort3 PKG_VERSION:=3.1.74.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/snort3/snort3/archive/refs/tags/ diff --git a/net/snort3/patches/010-gcc13.patch b/net/snort3/patches/010-gcc13.patch new file mode 100644 index 0000000000..4bfaee1dbe --- /dev/null +++ b/net/snort3/patches/010-gcc13.patch @@ -0,0 +1,14 @@ +--- a/src/network_inspectors/packet_capture/packet_capture.h ++++ b/src/network_inspectors/packet_capture/packet_capture.h +@@ -20,9 +20,10 @@ + #ifndef PACKET_CAPTURE_H + #define PACKET_CAPTURE_H + ++#include + #include + +-void packet_capture_enable(const std::string&, const int16_t g = -1); ++void packet_capture_enable(const std::string&, const std::int16_t g = -1); + void packet_capture_disable(); + + #endif