diff --git a/savefile.c b/savefile.c index f6d8170f2d..4d12c54451 100644 --- a/savefile.c +++ b/savefile.c @@ -32,10 +32,6 @@ #include #endif -#ifndef BUILDING_PCAP -#error "Wait, how can we not be building pcap?" -#endif - #include #ifdef _WIN32 #include @@ -507,15 +503,19 @@ pcap_fopen_offline_with_tstamp_precision(FILE *fp, u_int precision, return (p); } -#ifdef _WIN32 -static -#endif +/* + * This isn't needed on Windows; we #define pcap_fopen_offline() as + * a wrapper around pcap_hopen_offline(), and we don't call it from + * inside this file, so it's unused. + */ +#ifndef _WIN32 pcap_t * pcap_fopen_offline(FILE *fp, char *errbuf) { return (pcap_fopen_offline_with_tstamp_precision(fp, PCAP_TSTAMP_PRECISION_MICRO, errbuf)); } +#endif /* * Read packets from a capture file, and call the callback for each