Skip to content

Commit

Permalink
OpenBSD does not have the KERN_PROC_PATHNAME sysctl (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad0 authored Dec 20, 2024
1 parent 71ef529 commit 955e4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static char *executable_path() {
if ( _NSGetExecutablePath(path, &path_len) )
return NULL;
return path;
#elif defined(NEKO_BSD)
#elif defined(NEKO_BSD) && defined(KERN_PROC_PATHNAME)
int mib[4];
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
Expand Down

0 comments on commit 955e4d6

Please sign in to comment.