Skip to content

Commit 1a4731a

Browse files
committed
Attempt to fix the macOS build
1 parent b48ca3f commit 1a4731a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_common/qt-modules/app_path_qt/private/pge_app_path.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include <QDir>
2323
#include <QFileInfo>
2424

25+
#ifdef __APPLE__
26+
#include <unistd.h>
27+
#endif
28+
2529
#include "../pge_app_path.h"
2630
#include "pge_app_path_private.h"
2731
#include PGE_APP_PATH_VERSION_HEADER
@@ -87,6 +91,7 @@ void AppPathManager::initAppPath(const char *argv0)
8791
if(!QDir(ApplicationPath + "/Data directory").exists())
8892
symlink((path + UserDirName).toUtf8().data(), (ApplicationPath + "/Data directory").toUtf8().data());
8993
#endif
94+
9095
m_userPath = appDir.absolutePath();
9196
initSettingsPath();
9297
initDataPath();

0 commit comments

Comments
 (0)