Unix: add FreeBSD compatibility for FindLocalResourceDir().

pull/135/head
whitequark 2016-12-07 16:02:54 +00:00
parent 374d1b5e7f
commit 435682729e
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static const std::string &FindLocalResourceDir() {
selfPath = "/proc/self/exe";
#elif defined(__NetBSD__)
selfPath = "/proc/curproc/exe"
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__FreeBSD__)
selfPath = "/proc/curproc/file";
#elif defined(__APPLE__)
CFURLRef cfUrl =