From ff307c72bca5318b8e64a7e992dee76232e6c326 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 30 Sep 2014 13:19:24 -0700 Subject: Add more HAVE_LIBPCAP checks. Change-Id: I82e62f6be03a2ae1617cd5b8e430b73ca8fbe7f8 Reviewed-on: https://code.wireshark.org/review/4385 Reviewed-by: Gerald Combs --- ui/qt/main_window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/qt/main_window.h') diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index 68c206e646..0c1fd26ff0 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -76,7 +76,9 @@ public: void setPipeInputHandler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb); QString getFilter(); +#ifdef HAVE_LIBPCAP capture_session *captureSession() { return &cap_session_; } +#endif protected: bool eventFilter(QObject *obj, QEvent *event); @@ -107,7 +109,6 @@ private: MainWelcome *main_welcome_; DisplayFilterCombo *df_combo_box_; capture_file *cap_file_; - capture_session cap_session_; QFont mono_font_; // XXX - packet_list_, proto_tree_, and byte_view_tab_ should // probably be full-on values instead of pointers. @@ -122,6 +123,7 @@ private: bool capture_stopping_; bool capture_filter_valid_; #ifdef HAVE_LIBPCAP + capture_session cap_session_; CaptureInterfacesDialog capture_interfaces_dialog_; #endif -- cgit v1.2.3