Don't include capture-related headers if we don't support capturing
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 14 May 2010 01:39:02 +0000 (01:39 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 14 May 2010 01:39:02 +0000 (01:39 +0000)
network traffic.

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

gtk/main.c
gtk/main_statusbar.c
gtk/main_welcome.c

index b5c82a7c5ec8686d88f2e84302de0bfa6530a019..183c8e84c3d3c596ce454aa31c589e0c1a5674b9 100644 (file)
 #include "../version_info.h"
 #include "../merge.h"
 #include "../alert_box.h"
-#include "../capture_ui_utils.h"
 #include "../log.h"
 #include <wsutil/file_util.h>
 
-
 #ifdef HAVE_LIBPCAP
+#include "../capture_ui_utils.h"
 #include "../capture-pcap-util.h"
 #include "../capture_ifinfo.h"
 #include "../capture.h"
index b89a5d980caecf145db246526f91eb153247617c..cca3a653a0f6c3f52fadc97f3893c23606f5dea4 100644 (file)
@@ -40,9 +40,9 @@
 
 #include "../cfile.h"
 #include "../file.h"
+#ifdef HAVE_LIBPCAP
 #include "../capture_opts.h"
 #include "../capture_ui_utils.h"
-#ifdef HAVE_LIBPCAP
 #include "../capture.h"
 #endif
 
index 6a2d4accc3df1631352cbf4a014c8d44d5dbfa25..3a72f559800abefbbd465f9ddfdd4664fc553e0a 100644 (file)
 #include <epan/prefs.h>
 
 #include "../color.h"
+#ifdef HAVE_LIBPCAP
 #include "capture.h"
 #include "capture-pcap-util.h"
 #include "capture_opts.h"
 #include "capture_ui_utils.h"
+#endif
 #include "simple_dialog.h"
 #include <wsutil/file_util.h>
 
 #include "gtk/main.h"
 #include "gtk/menus.h"
 #include "gtk/main_welcome.h"
-#include "gtk/capture_dlg.h"
-#include "gtk/capture_if_dlg.h"
-#include "gtk/capture_file_dlg.h"
 #include "gtk/help_dlg.h"
+#include "gtk/capture_file_dlg.h"
 #include "gtk/stock_icons.h"
+#ifdef HAVE_LIBPCAP
+#include "gtk/capture_dlg.h"
+#include "gtk/capture_if_dlg.h"
 #include "gtk/capture_globals.h"
+#endif
 #include "../image/wssplash-dev.xpm"
 #include "../version_info.h"