freebsd-ports/games/multimc/files/patch-api_logic_java_JavaUtils.cpp
Steve Wills 63bab8f704 games/multimc: update to 0.6.5
PR:		236488
Submitted by:	tsundoku <me@tsundoku.ne.jp> (maintainer)
2019-03-18 17:53:39 +00:00

29 lines
993 B
C++

--- api/logic/java/JavaUtils.cpp.orig 2019-02-20 23:45:36 UTC
+++ api/logic/java/JavaUtils.cpp
@@ -31,7 +31,7 @@ JavaUtils::JavaUtils()
{
}
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
static QString processLD_LIBRARY_PATH(const QString & LD_LIBRARY_PATH)
{
QDir mmcBin(QCoreApplication::applicationDirPath());
@@ -83,7 +83,7 @@ QProcessEnvironment CleanEnviroment()
qDebug() << "Env: ignoring" << key << value;
continue;
}
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
// Do not pass LD_* variables to java. They were intended for MultiMC
if(key.startsWith("LD_"))
{
@@ -112,7 +112,7 @@ QProcessEnvironment CleanEnviroment()
// qDebug() << "Env: " << key << value;
env.insert(key, value);
}
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
// HACK: Workaround for QTBUG42500
if(!env.contains("LD_LIBRARY_PATH"))
{