minor fix to tethereal to allow it to compile with --without-pcap

svn path=/trunk/; revision=12650
This commit is contained in:
Ronnie Sahlberg 2004-12-01 23:47:14 +00:00
parent 594c47b14d
commit 5102dbe323
1 changed files with 2 additions and 0 deletions

View File

@ -2594,11 +2594,13 @@ process_packet(capture_file *cf, wtap_dumper *pdh, long offset,
if (!quiet && !print_packet_info) {
/* Don't print a packet count if we were asked not to with "-q"
or if we're also printing packet info. */
#ifdef HAVE_LIBPCAP
if (ld.packet_count != 0) {
fprintf(stderr, "\r%u ", ld.packet_count);
/* stderr could be line buffered */
fflush(stderr);
}
#endif
}
}
if (print_packet_info) {