Commit a96d5716 authored by Zack Weinberg's avatar Zack Weinberg
Browse files

Fix pgen_pcap.cc compile failure on Linux.

Glibc's headers are not as promiscuous about including each other as
OSX's are.  Also, apparently there exist at least two incompatible
definitions of 'struct tcphdr'.  Down, not across.
parent 83648b90
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6,12 +6,16 @@
#include "pgen.h"
#include "compression.h"

#include <dirent.h>
#include <signal.h>
#include <unistd.h>
#include <pcap/pcap.h>

#define __FAVOR_BSD 1
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <dirent.h>

#define NUM_FLOWS 1000
#define NUM_LISTS 1000