Fix FreeBSD/OSX compile problem due to headers

This commit is contained in:
Johanna Amann 2016-06-02 16:26:54 -07:00
parent a2423f7d43
commit 800eda4796
3 changed files with 12 additions and 2 deletions

2
cmake

@ -1 +1 @@
Subproject commit 0a2b36874ad5c1a22829135f8aeeac534469053f
Subproject commit b8b4604f362aa8d4b64e589cbea499a0c041ef24

View file

@ -3,7 +3,12 @@
#ifndef conn_h
#define conn_h
#ifdef HAVE_NETINET_ETHER_H
#include <netinet/ether.h>
#endif
#ifdef HAVE_NET_ETHERNET_H
#include <net/ethernet.h>
#endif
#include <sys/types.h>
#include "Dict.h"

View file

@ -1,7 +1,12 @@
#ifndef packet_h
#define packet_h
#include <netinet/ether.h>
#include "bro-config.h"
#include <sys/types.h>
#ifdef HAVE_NET_ETHERNET_H
#include <net/ethernet.h>
#endif
#include "Desc.h"
#include "IP.h"