From 8a3bd9ee38a775b28ab907e15a5bc2cab300ce64 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Tue, 24 Mar 2015 13:10:57 +0100 Subject: Win32: Compilation error if winpcap remote capturing disabled If HAVE_PCAP_REMOTE is not set, this code is not defined and therefore will not be compiled correctly. Change-Id: Ie08a6f99598d46cfa38e2448ea979a8a9aa7c7fc Reviewed-on: https://code.wireshark.org/review/7803 Reviewed-by: Roland Knall Petri-Dish: Alexis La Goutte Reviewed-by: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/gtk/capture_dlg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/gtk/capture_dlg.c') diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c index 9b919427e1..148d2f180a 100644 --- a/ui/gtk/capture_dlg.c +++ b/ui/gtk/capture_dlg.c @@ -2935,7 +2935,9 @@ void options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColum #ifdef HAVE_PCAP_REMOTE gtk_box_pack_start (GTK_BOX(left_vb), buffer_size_hb, FALSE, FALSE, 0); #else - gtk_box_pack_start (GTK_BOX(right_vb), buffer_size_hb, FALSE, FALSE, 0); + #if defined (HAVE_AIRPCAP) || defined (HAVE_PCAP_CREATE) + gtk_box_pack_start (GTK_BOX(right_vb), buffer_size_hb, FALSE, FALSE, 0); + #endif #endif #endif -- cgit v1.2.3