diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-19 20:49:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-19 20:49:28 +0000 |
commit | 3e35c8a9b1dfa71d4d63f6348aa60ee922c4da5f (patch) | |
tree | aa2bc90a2b7824ff321c18f5fde4030f7ea062fe /gtk/prefs_dlg.c | |
parent | a056c5052d1675fa8af2c06aaadc6cc8b28d3997 (diff) | |
download | wireshark-3e35c8a9b1dfa71d4d63f6348aa60ee922c4da5f.tar.gz wireshark-3e35c8a9b1dfa71d4d63f6348aa60ee922c4da5f.tar.bz2 wireshark-3e35c8a9b1dfa71d4d63f6348aa60ee922c4da5f.zip |
On Windows, don't put the capture preferences item into the
"Preferences" dialog box if we couldn't load WinPcap.
svn path=/trunk/; revision=5204
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r-- | gtk/prefs_dlg.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 423298853c..25d12ac1e6 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -1,7 +1,7 @@ /* prefs_dlg.c * Routines for handling preferences * - * $Id: prefs_dlg.c,v 1.44 2002/03/05 12:03:27 guy Exp $ + * $Id: prefs_dlg.c,v 1.45 2002/04/19 20:49:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -364,6 +364,10 @@ prefs_cb(GtkWidget *w _U_, gpointer dummy _U_) cts.page++; #ifdef HAVE_LIBPCAP +#ifdef _WIN32 + /* Is WPcap loaded? */ + if (has_wpcap) { +#endif /* _WIN32 */ /* capture prefs */ frame = gtk_frame_new("Capture"); gtk_widget_show(GTK_WIDGET(frame)); @@ -377,7 +381,10 @@ prefs_cb(GtkWidget *w _U_, gpointer dummy _U_) gtk_ctree_node_set_row_data(GTK_CTREE(cts.ctree), ct_node, GINT_TO_POINTER(cts.page)); cts.page++; -#endif +#ifdef _WIN32 + } +#endif /* _WIN32 */ +#endif /* HAVE_LIBPCAP */ /* Name resolution prefs */ frame = gtk_frame_new("Name resolution"); |