we dont have auto_scroll_live if we dont have PCAP so ifdef this out unless PCAP...
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Feb 2007 08:37:54 +0000 (08:37 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Feb 2007 08:37:54 +0000 (08:37 +0000)
(to allow it to compile when pcap is not available)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20662 f5534014-38df-0310-8fa8-9805f1628bb7

file.c

diff --git a/file.c b/file.c
index 2cc50ca26d0f182be84f8cc6bd02bd4fb2cbcaed..2babfe678dbeff221abdbc6955f55d6f601e2bfe 100644 (file)
--- 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",