snort3: fix compilation with gcc13
authorRosen Penev <rosenp@gmail.com>
Thu, 16 Nov 2023 21:08:33 +0000 (13:08 -0800)
committerRosen Penev <rosenp@gmail.com>
Sun, 19 Nov 2023 04:18:43 +0000 (20:18 -0800)
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/snort3/Makefile
net/snort3/patches/010-gcc13.patch [new file with mode: 0644]

index 2849135b20ad8c4e41f7e94016e0f8fcf16e0420..5e452d18031207580be5dcdefb8e417daea7f929 100644 (file)
@@ -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 (file)
index 0000000..4bfaee1
--- /dev/null
@@ -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 <cstdint>
+ #include <string>
+-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