# HG changeset patch # User David Demelier # Date 1507709548 -7200 # Node ID da9c2e128cae43fb63f3679e2f13689be0ceaa9d # Parent 1ae8106369e56a20979a719b4f12184980f23d2b Executable: fix for macOS diff -r 1ae8106369e5 -r da9c2e128cae modules/executable/executable.cpp --- a/modules/executable/executable.cpp Tue Sep 26 09:50:02 2017 +0200 +++ b/modules/executable/executable.cpp Wed Oct 11 10:12:28 2017 +0200 @@ -76,7 +76,7 @@ #elif defined(__APPLE__) char path[PROC_PIDPATHINFO_MAXSIZE + 1] = {0}; - if ((proc_pidpath(getpid(), path, sizeof (path) - 1) == 0) + if ((proc_pidpath(getpid(), path, sizeof (path) - 1)) == 0) throw std::runtime_error(std::strerror(errno)); result = path;