1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 08:11:47 +02:00

Fix undefined macro errors

This commit is contained in:
Robert Hensing 2025-04-06 17:43:10 +02:00
parent cf5e59911b
commit 77b4bb74d5
3 changed files with 3 additions and 3 deletions

View file

@ -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)