From 1babe685297b82d99da0191da02e3e13b3a8d044 Mon Sep 17 00:00:00 2001 From: "[CST] Bas" Date: Tue, 29 Jan 2013 01:20:55 +0800 Subject: [PATCH] neutrino: fix file location. --- src/eitd/SIlanguage.cpp | 6 +++++- src/eitd/SIlanguage.hpp | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/eitd/SIlanguage.cpp b/src/eitd/SIlanguage.cpp index 44db9a74d..6cc261251 100644 --- a/src/eitd/SIlanguage.cpp +++ b/src/eitd/SIlanguage.cpp @@ -22,6 +22,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -32,7 +36,7 @@ #include "SIlanguage.hpp" -#define LANGUAGEFILE CONFIGDIR "/epglanguages.conf" +static const char LANGUAGEFILE[] = CONFIGDIR "/epglanguages.conf"; std::vector SIlanguage::languages; pthread_mutex_t SIlanguage::languages_lock = PTHREAD_MUTEX_INITIALIZER; diff --git a/src/eitd/SIlanguage.hpp b/src/eitd/SIlanguage.hpp index 133aec0fc..7f80d3a76 100644 --- a/src/eitd/SIlanguage.hpp +++ b/src/eitd/SIlanguage.hpp @@ -29,8 +29,6 @@ #include -#define LANGUAGEFILE "/var/tuxbox/config/epglanguages.conf" - class SIlanguage { public: static void filter(const std::map& s, int max, std::string& retval);