[Buildroot] [PATCH 1/1] package/snort3: fix build with gcc >= 13
Peter Korsgaard
peter at korsgaard.com
Wed Nov 8 06:58:54 UTC 2023
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:
> Fix the following build failure with gcc >= 13:
> In file included from /home/thomas/autobuild/instance-1/output-1/build/snort3-3.1.40.0/src/packet_io/sfdaq_config.cc:25:
> /home/thomas/autobuild/instance-1/output-1/build/snort3-3.1.40.0/src/packet_io/sfdaq_config.h:59:25:
> error: 'uint32_t' has not been declared
> 59 | void set_batch_size(uint32_t);
> | ^~~~~~~~
> /home/thomas/autobuild/instance-1/output-1/build/snort3-3.1.40.0/src/packet_io/sfdaq_config.h:62:5:
> error: 'uint32_t' does not name a type
> 62 | uint32_t get_batch_size() const { return (batch_size == BATCH_SIZE_UNSET) ? BATCH_SIZE_DEFAULT : batch_size; }
> | ^~~~~~~~
> /home/thomas/autobuild/instance-1/output-1/build/snort3-3.1.40.0/src/packet_io/sfdaq_config.h:26:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
> 25 | #include <vector>
> +++ |+#include <cstdint>
> 26 |
> Fixes:
> - http://autobuild.buildroot.org/results/c91a74bad542f32693f2e31412fba70446fd3959
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Committed to 2023.08.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list