From d2e9b5b8e528b4e553dc43c87f6b94c008106952 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 20 Feb 2019 10:10:48 +0100 Subject: [PATCH] Qt: fix compilation without pcap on gcc-8 and clang-7. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica9793ed9da2332f70cfb783dad8200340be34bf Reviewed-on: https://code.wireshark.org/review/32119 Reviewed-by: Dario Lombardo Petri-Dish: Dario Lombardo Tested-by: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/main_window_slots.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 8358db011d..5d6ace80c9 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -3615,12 +3615,14 @@ void MainWindow::on_actionCaptureStop_triggered() void MainWindow::on_actionCaptureRestart_triggered() { +#ifdef HAVE_LIBPCAP QString before_what(tr(" before restarting the capture")); cap_session_.capture_opts->restart = TRUE; if (!testCaptureFileClose(before_what, Restart)) return; startCapture(); +#endif // HAVE_LIBPCAP } void MainWindow::on_actionCaptureCaptureFilters_triggered()