diff --git a/src/ZVal.h b/src/ZVal.h index 2dce0e0925..abe68bf83f 100644 --- a/src/ZVal.h +++ b/src/ZVal.h @@ -35,6 +35,10 @@ using TypeValPtr = IntrusivePtr; using ValPtr = IntrusivePtr; using VectorValPtr = IntrusivePtr; +namespace detail { + class ZBody; +} + // Note that a ZVal by itself is ambiguous: it doesn't track its type. // This makes them consume less memory and cheaper to copy. It does // however require a separate way to determine the type. Generally @@ -160,6 +164,7 @@ union ZVal { private: friend class RecordVal; friend class VectorVal; + friend class zeek::detail::ZBody; // Used for bool, int, enum. bro_int_t int_val;