mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
restore accidentally removed Linux #ifdef case
This commit is contained in:
parent
209545a360
commit
9785badf09
@ -150,6 +150,9 @@ namespace musik { namespace core {
|
|||||||
boost::filesystem::path command = boost::filesystem::system_complete(argv[0]);
|
boost::filesystem::path command = boost::filesystem::system_complete(argv[0]);
|
||||||
realpath(command.c_str(), pathbuf);
|
realpath(command.c_str(), pathbuf);
|
||||||
delete[] argv;
|
delete[] argv;
|
||||||
|
#else
|
||||||
|
std::string pathToProc = u8fmt("/proc/%d/exe", (int) getpid());
|
||||||
|
readlink(pathToProc.c_str(), pathbuf, PATH_MAX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result.assign(pathbuf);
|
result.assign(pathbuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user