Also fix launcher for netbsd
This commit is contained in:
parent
374f7abb5d
commit
8fd92df7ae
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user