FreeBSD: Fix compilation

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-07-06 19:56:24 +02:00
parent 5fc5fd62a0
commit 26377fd319
2 changed files with 3 additions and 2 deletions

View File

@@ -260,13 +260,13 @@ fn PlatformStruct() type {
}
pub fn shutdownSystemImpl() !void {
if (isError(reboot.reboot(reboot.RB_POWEROFF))) {
if (isError(unistd.reboot(reboot.RB_POWEROFF))) {
return error.CouldntShutdown;
}
}
pub fn rebootSystemImpl() !void {
if (isError(reboot.reboot(reboot.RB_AUTOBOOT))) {
if (isError(unistd.reboot(reboot.RB_AUTOBOOT))) {
return error.CouldntReboot;
}
}