mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
af_packet: Add guarded zeek/zeek-version.h include.
With zeek/zeek#2802, zeek-config.h will not provide ZEEK_VERSION_NUMBER when a plugin is compiled as a builtin/static plugin into Zeek. This is done to avoid tree-wide ccache busting when just the version changes.
This commit is contained in:
parent
67d3b0697f
commit
d9d7b76c5d
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
#include "zeek/zeek-config.h"
|
||||
|
||||
// Starting with Zeek 6.0, zeek-config.h does not provide the
|
||||
// ZEEK_VERSION_NUMBER macro anymore when compiling a included
|
||||
// plugin. Use the new zeek/zeek-version.h header if it exists.
|
||||
#if __has_include("zeek/zeek-version.h")
|
||||
#include "zeek/zeek-version.h"
|
||||
#endif
|
||||
|
||||
#include "AF_Packet.h"
|
||||
#include "RX_Ring.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue