1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

LibCore: Make FreeBSD build SerenityOS

This commit is contained in:
Isak Holmstrom 2022-02-14 18:52:30 +01:00 committed by Linus Groh
parent 4f716caa33
commit 41765895a8
2 changed files with 7 additions and 0 deletions

View file

@ -106,7 +106,11 @@ String DateTime::to_string(StringView format) const
const int format_len = format.length();
auto format_time_zone_offset = [&](bool with_separator) {
#ifndef __FreeBSD__
auto offset_seconds = -timezone;
#else
auto offset_seconds = 0;
#endif
StringView offset_sign;
if (offset_seconds >= 0) {

View file

@ -17,6 +17,9 @@
#ifdef __serenity__
# include <serenity.h>
#endif
#ifdef __FreeBSD__
# include <sys/ucred.h>
#endif
namespace Core::Stream {