Also fix launcher for netbsd

This commit is contained in:
Kovid Goyal 2018-07-29 12:54:24 +05:30
parent 374f7abb5d
commit 8fd92df7ae
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -109,6 +109,14 @@ read_exe_path(char *exe, size_t buf_sz) {
}
return true;
}
#elif defined(__NetBSD__)
static inline bool
read_exe_path(char *exe, size_t buf_sz) {
if (realpath("/proc/curproc/exe", exe) == NULL) { fprintf(stderr, "Failed to read /proc/self/exe\n"); return false; }
return true;
}
#else
static inline bool