FreeBSD: Fix compilation

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

No files matched your search

+2 -2
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;
}
}