From 14605754afc3dd0da0ef2da1c534cb4d77cc2d9e Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 21 Aug 2014 09:34:16 -0400 Subject: [PATCH] Fix compilation when we don't HAVE_LIBSMI or HAVE_GEOIP. Change-Id: I7523c183fd46a649947ad316518dfffaddb02dbe Reviewed-on: https://code.wireshark.org/review/3772 Petri-Dish: Jeff Morriss Tested-by: Petri Dish Buildbot Reviewed-by: Jeff Morriss --- ui/gtk/about_dlg.c | 2 +- ui/qt/about_dialog.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/gtk/about_dlg.c b/ui/gtk/about_dlg.c index 151a691feb..8d80ecc7b6 100644 --- a/ui/gtk/about_dlg.c +++ b/ui/gtk/about_dlg.c @@ -389,7 +389,7 @@ about_folders_page_new(void) char *path; static const gchar *titles[] = { "Name", "Folder", "Typical Files"}; GtkWidget *scrolledwindow; -#if defined (HAVE_LIBSMI) || defined (HAVE_GEOIP) +#if defined(HAVE_LIBSMI) || defined(HAVE_GEOIP) || defined(HAVE_EXTCAP) gint i; gchar **resultArray; #endif diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp index 1d54f6690b..73c32396d7 100644 --- a/ui/qt/about_dialog.cpp +++ b/ui/qt/about_dialog.cpp @@ -125,8 +125,10 @@ AboutDialog::AboutDialog(QWidget *parent) : QFile f_license; const char *constpath; QString message; -#if defined (HAVE_LIBSMI) || defined (HAVE_GEOIP) +#if defined(HAVE_LIBSMI) || defined(HAVE_GEOIP) || defined(HAVE_EXTCAP) +#if defined(HAVE_LIBSMI) || defined(HAVE_GEOIP) char *path = NULL; +#endif gint i; gchar **resultArray; #endif