mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58: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);
|
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
|
||||||
break;
|
break;
|
||||||
case IPv6:
|
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);
|
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
using namespace input::reader;
|
using namespace input::reader;
|
||||||
using threading::Value;
|
using threading::Value;
|
||||||
|
@ -199,7 +200,7 @@ bool Raw::DoUpdate() {
|
||||||
case MANUAL:
|
case MANUAL:
|
||||||
case STREAM:
|
case STREAM:
|
||||||
if ( mode == STREAM && file != NULL && in != NULL ) {
|
if ( mode == STREAM && file != NULL && in != NULL ) {
|
||||||
fpurge(file);
|
//fpurge(file);
|
||||||
in->clear(); // remove end of file evil bits
|
in->clear(); // remove end of file evil bits
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue