The remote_options structure is not used if we don't have remote capture
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 20 Aug 2011 19:30:35 +0000 (19:30 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 20 Aug 2011 19:30:35 +0000 (19:30 +0000)
support in pcap, so don't declare it if HAVE_PCAP_REMOTE isn't defined.

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

gtk/capture_dlg.h

index 2a156ebce8eea4ff162588872b692ba5604303ee..47ead127b50b8b8b1fa7cc449dc2da1ba358a84e 100644 (file)
@@ -44,18 +44,16 @@ struct remote_host {
     gboolean nocap_rpcap;
     gboolean nocap_local;
 };
-#endif
 
 typedef struct remote_options_tag {
-#ifdef HAVE_PCAP_REMOTE
     capture_source src_type;
     struct remote_host remote_host_opts;
-#endif
 #ifdef HAVE_PCAP_SETSAMPLING
     capture_sampling sampling_method;
     int sampling_param;
 #endif
 } remote_options;
+#endif /* HAVE_PCAP_REMOTE */
 
 typedef struct row_options_tag {
     gchar *name;