aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-27 10:47:27 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-27 10:47:27 +0000
commit91e606b7ddb003f010f82c04d1b74a54ea399e93 (patch)
treea978f3c113d0021330ed1789e019bd46abd5ecd2 /gtk
parentf6dbe26f6c2ebb414275dadc330f273028406d97 (diff)
Fix a problem with building with libpcap disabled.
svn path=/trunk/; revision=13181
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c
index ee593b72d4..db2f75bbdb 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1717,9 +1717,7 @@ main(int argc, char *argv[])
console_log_handler, NULL);
#endif
-#ifndef HAVE_LIBPCAP
- capture_opts->capture_child = FALSE;
-#else
+#ifdef HAVE_LIBPCAP
command_name = get_basename(ethereal_path);
/* Set "capture_child" to indicate whether this is going to be a child
process for a "-S" capture. */
@@ -2476,7 +2474,11 @@ main(int argc, char *argv[])
rc_file = get_persconffile_path(RC_FILE, FALSE);
gtk_rc_parse(rc_file);
+#ifdef HAVE_LIBPCAP
font_init(capture_opts->capture_child);
+#else
+ font_init(FALSE);
+#endif
/* close the splash screen, as we are going to open the main window now */
splash_destroy(splash_win);