summaryrefslogtreecommitdiff
path: root/ui/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-03-24 13:10:57 +0100
committerMichael Mann <mmann78@netscape.net>2015-03-24 23:59:41 +0000
commit8a3bd9ee38a775b28ab907e15a5bc2cab300ce64 (patch)
tree32ac41d5183a2457be27861643578d4516eccef6 /ui/gtk/capture_dlg.c
parent7710da4d775689ffe1b218ee99435cdc2c63331e (diff)
downloadwireshark-8a3bd9ee38a775b28ab907e15a5bc2cab300ce64.tar.gz
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 <rknall@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/capture_dlg.c')
-rw-r--r--ui/gtk/capture_dlg.c4
1 files changed, 3 insertions, 1 deletions
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