summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-02-01 08:37:54 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-02-01 08:37:54 +0000
commitb1a499190e06ece71f8b74c8a1d77126cd2f6324 (patch)
tree8470338510c5b87824a2303f026aad9773026e30 /file.c
parent7d8687e8ae573ffd7a0021c6178e35a0da7651dd (diff)
downloadwireshark-b1a499190e06ece71f8b74c8a1d77126cd2f6324.tar.gz
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 2cc50ca26d..2babfe678d 100644
--- a/file.c
+++ b/file.c
@@ -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",