mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fix compile errors.
Preprocess out DataSeries.cc based on config.h's USE_DATASERIES value and one reference to threading::Field needed scoping.
This commit is contained in:
parent
2108ea0ac1
commit
5f3575425d
2 changed files with 7 additions and 1 deletions
|
@ -466,7 +466,7 @@ bool Manager::TraverseRecord(Stream* stream, Filter* filter, RecordType* rt,
|
|||
|
||||
filter->fields = (threading::Field**)
|
||||
realloc(filter->fields,
|
||||
sizeof(Field) * ++filter->num_fields);
|
||||
sizeof(threading::Field) * ++filter->num_fields);
|
||||
|
||||
if ( ! filter->fields )
|
||||
{
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef USE_DATASERIES
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <errno.h>
|
||||
|
@ -415,3 +419,5 @@ bool DataSeries::DoSetBuf(bool enabled)
|
|||
// DataSeries is *always* buffered to some degree. This option is ignored.
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif /* USE_DATASERIES */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue