#include "../config.h" #ifndef HAVE_PCAP_DUMP_FLUSH #include #include #if HAVE_PCAP_INT_H # include #else //# error "Need pcap-int.h for declaration of pcap_t" #endif #include int pcap_dump_flush(pcap_dumper_t *p) { if (fflush((FILE *)p) == EOF) return (-1); else return (0); } #endif