Skip to content

Commit 7c1cb69

Browse files
committed
Fix portable build on linux
1 parent 5878f62 commit 7c1cb69

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

shared/sys/sys_unix.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
3434
#include <signal.h>
3535
#include <sys/resource.h>
3636

37+
#include "qcommon/q_version.h"
3738
#include "qcommon/qcommon.h"
3839
#include "qcommon/q_shared.h"
3940
#include "sys_local.h"
@@ -475,7 +476,12 @@ bool Sys_PathCmp( const char *path1, const char *path2 )
475476
Sys_DefaultHomePath
476477
==================
477478
*/
478-
#ifdef MACOS_X
479+
#if defined(BUILD_PORTABLE)
480+
char *Sys_DefaultHomePath(void)
481+
{
482+
return NULL;
483+
}
484+
#elif defined(MACOS_X)
479485
char *Sys_DefaultHomePath(void)
480486
{
481487
char *p;

0 commit comments

Comments
 (0)