freebsd-ports/multimedia/helixplayer/files/patch-common_system_dllpath.cpp
Thierry Thomas 3b866d3c34 The Helix Player is the Helix Community's open source media player for
consumers. It is being developed to have a rich and usable graphical
interface and support a variety of open media formats like Ogg Vorbis,
Theora etc.

Adopted by:	Shaun Amott <shaun (at) inerd.com>
2006-05-17 19:41:08 +00:00

20 lines
687 B
C++

--- common/system/dllpath.cpp.orig Sun Jul 25 17:00:35 2004
+++ common/system/dllpath.cpp Sun Jul 25 17:03:40 2004
@@ -243,7 +243,7 @@
strResultPath += strPathEnvVar;
}
-#if defined (_AIX) || defined (_LINUX)
+#if defined (_AIX) || defined (_LINUX) || defined (_FREEBSD)
{
char *ptr = (char *) ((const char *)strResultPath);
if(putenv(ptr))
@@ -270,7 +270,7 @@
#if !defined(_MACINTOSH) && !defined(WIN32_PLATFORM_PSPC)
if(!m_strPathEnvVar.IsEmpty())
{
-#if defined(_AIX) || defined(_LINUX)
+#if defined(_AIX) || defined(_LINUX) || defined(_FREEBSD)
char *ptr = (char *)((const char *)m_strPathEnvVar);
if(putenv(ptr))
theError = HXR_FAILED;