mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
parent
1b119ded3a
commit
3bb46b73a8
3 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ std::optional<Path> getSelfExe()
|
|||
{
|
||||
#if defined(__linux__) || defined(__GNU__)
|
||||
return readLink("/proc/self/exe");
|
||||
#elif __APPLE__
|
||||
#elif defined(__APPLE__)
|
||||
char buf[1024];
|
||||
uint32_t size = sizeof(buf);
|
||||
if (_NSGetExecutablePath(buf, &size) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue