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,7 +150,10 @@ namespace musik { namespace core {
|
||||
boost::filesystem::path command = boost::filesystem::system_complete(argv[0]);
|
||||
realpath(command.c_str(), pathbuf);
|
||||
delete[] argv;
|
||||
#endif
|
||||
#else
|
||||
std::string pathToProc = u8fmt("/proc/%d/exe", (int) getpid());
|
||||
readlink(pathToProc.c_str(), pathbuf, PATH_MAX);
|
||||
#endif
|
||||
|
||||
result.assign(pathbuf);
|
||||
size_t last = result.find_last_of("/");
|
||||
|
Loading…
Reference in New Issue
Block a user