1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/vdr-plugin-live/files/patch-live.cpp
2014-03-29 17:05:47 +00:00

24 lines
775 B
C++

--- a/live.cpp
+++ b/live.cpp
@@ -46,10 +46,19 @@ bool Plugin::ProcessArgs(int argc, char
bool Plugin::Start(void)
{
- m_configDirectory = canonicalize_file_name(cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ));
+#ifdef __FreeBSD__
+ char buf[PATH_MAX], buf2[PATH_MAX];
+
+ m_configDirectory = realpath(cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ), buf);
+#if APIVERSNUM > 10729
+ m_resourceDirectory = realpath(cPlugin::ResourceDirectory( PLUGIN_NAME_I18N ), buf2);
+#endif
+#else
+ m_configDirectory = canonicalize_file_name(cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ));
#if APIVERSNUM > 10729
m_resourceDirectory = canonicalize_file_name(cPlugin::ResourceDirectory( PLUGIN_NAME_I18N ));
#endif
+#endif
#if VDRVERSNUM < 10507
RegisterI18n( vdrlive::Phrases );