From 7e35334582f9c925bf1691cd2651fd05a5f15f33 Mon Sep 17 00:00:00 2001 From: pupbrained Date: Mon, 12 May 2025 22:58:58 -0400 Subject: [PATCH] um? --- src/OS/Haiku.cpp | 2 +- src/Services/Weather/OpenMeteoService.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OS/Haiku.cpp b/src/OS/Haiku.cpp index e3e213c..1e74c1b 100644 --- a/src/OS/Haiku.cpp +++ b/src/OS/Haiku.cpp @@ -127,7 +127,7 @@ namespace os { struct statvfs stat; if (statvfs("/boot", &stat) == -1) - return Err(DracError::withErrno(std::format("Failed to get filesystem stats for '/boot' (statvfs call failed)"))); + return Err(DracError(std::format("Failed to get filesystem stats for '/boot' (statvfs call failed)"))); return DiskSpace { .used_bytes = (stat.f_blocks * stat.f_frsize) - (stat.f_bfree * stat.f_frsize), diff --git a/src/Services/Weather/OpenMeteoService.cpp b/src/Services/Weather/OpenMeteoService.cpp index 0d78338..799c2d7 100644 --- a/src/Services/Weather/OpenMeteoService.cpp +++ b/src/Services/Weather/OpenMeteoService.cpp @@ -78,6 +78,8 @@ namespace { return 0; #ifdef _WIN32 return static_cast(_mkgmtime(&time)); +#elifdef __HAIKU__ + return static_cast(gmtime(&time)); #else return static_cast(timegm(&time)); #endif