Fix build on NetBSD.

This commit is contained in:
Thomas Klausner 2023-05-16 22:34:00 +02:00 committed by Miloš Komarčević
parent b0eefcda75
commit d92fb10cdb

View File

@ -360,7 +360,7 @@ std::string getProcessPath() {
TCHAR pathbuf[MAX_PATH];
GetModuleFileName(nullptr, pathbuf, MAX_PATH);
auto path = fs::path(pathbuf);
#elif __has_include(<libproc.h>)
#elif defined(PROC_PIDPATHINFO_MAXSIZE)
char pathbuf[PROC_PIDPATHINFO_MAXSIZE];
proc_pidpath(getpid(), pathbuf, sizeof(pathbuf));
auto path = fs::path(pathbuf);