we dont have auto_scroll_live if we dont have PCAP so ifdef this out unless PCAP is available

(to allow it to compile when pcap is not available)


svn path=/trunk/; revision=20662
This commit is contained in:
Ronnie Sahlberg 2007-02-01 08:37:54 +00:00
parent 7d8687e8ae
commit b1a499190e
1 changed files with 2 additions and 0 deletions

2
file.c
View File

@ -462,12 +462,14 @@ cf_read(capture_file *cf)
if (progbar != NULL) {
/* update the packet lists content on the first run or frequently on very large files */
/* (on smaller files the display update takes longer than reading the file) */
#ifdef HAVE_LIBPCAP
if(progbar_quantum > 500000 || progbar_nextstep == 0) {
packet_list_thaw();
if (auto_scroll_live && cf->plist_end != NULL)
packet_list_moveto_end();
packet_list_freeze();
}
#endif
g_snprintf(status_str, sizeof(status_str),
"%" PRId64 "KB of %" PRId64 "KB",