diff --git a/src/common/impl/FFPlatform_unix.c b/src/common/impl/FFPlatform_unix.c index 8320a1771..76afb3597 100644 --- a/src/common/impl/FFPlatform_unix.c +++ b/src/common/impl/FFPlatform_unix.c @@ -18,6 +18,7 @@ #include #elif defined(__OpenBSD__) #include + #include #include #include "common/path.h" #elif defined(__HAIKU__) @@ -97,7 +98,7 @@ static void getExePath(FFPlatform* platform) { struct stat st; if (stat(exePath, &st) == 0 && S_ISREG(st.st_mode)) { int cntp; - struct kinfo_file* kf = kvm_getfiles(kd, KERN_FILE_BYPID, platform->pid, sizeof(*kf), &cntp); + struct kinfo_file* kf = kvm_getfiles(kd, KERN_FILE_BYPID, (pid_t) platform->pid, sizeof(*kf), &cntp); if (kf) { int i; for (i = 0; i < cntp; i++) {