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