mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
missing include on linux
This commit is contained in:
parent
da13fe895e
commit
6c4a40f176
2 changed files with 3 additions and 2 deletions
|
@ -1540,7 +1540,7 @@ int Manager::CopyValue(char *data, const int startpos, const Value* val) {
|
|||
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
|
||||
break;
|
||||
case IPv6:
|
||||
length += sizeof(val->val.addr_val.in.in6);
|
||||
length = sizeof(val->val.addr_val.in.in6);
|
||||
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
using namespace input::reader;
|
||||
using threading::Value;
|
||||
|
@ -199,7 +200,7 @@ bool Raw::DoUpdate() {
|
|||
case MANUAL:
|
||||
case STREAM:
|
||||
if ( mode == STREAM && file != NULL && in != NULL ) {
|
||||
fpurge(file);
|
||||
//fpurge(file);
|
||||
in->clear(); // remove end of file evil bits
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue