Skip to content

Commit 955e4d6

Browse files
authored
OpenBSD does not have the KERN_PROC_PATHNAME sysctl (#298)
1 parent 71ef529 commit 955e4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static char *executable_path() {
8181
if ( _NSGetExecutablePath(path, &path_len) )
8282
return NULL;
8383
return path;
84-
#elif defined(NEKO_BSD)
84+
#elif defined(NEKO_BSD) && defined(KERN_PROC_PATHNAME)
8585
int mib[4];
8686
mib[0] = CTL_KERN;
8787
mib[1] = KERN_PROC;

0 commit comments

Comments
 (0)