mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:47:45 +00:00
LibCore: Make FreeBSD build SerenityOS
This commit is contained in:
parent
4f716caa33
commit
41765895a8
2 changed files with 7 additions and 0 deletions
|
@ -106,7 +106,11 @@ String DateTime::to_string(StringView format) const
|
||||||
const int format_len = format.length();
|
const int format_len = format.length();
|
||||||
|
|
||||||
auto format_time_zone_offset = [&](bool with_separator) {
|
auto format_time_zone_offset = [&](bool with_separator) {
|
||||||
|
#ifndef __FreeBSD__
|
||||||
auto offset_seconds = -timezone;
|
auto offset_seconds = -timezone;
|
||||||
|
#else
|
||||||
|
auto offset_seconds = 0;
|
||||||
|
#endif
|
||||||
StringView offset_sign;
|
StringView offset_sign;
|
||||||
|
|
||||||
if (offset_seconds >= 0) {
|
if (offset_seconds >= 0) {
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
#ifdef __serenity__
|
#ifdef __serenity__
|
||||||
# include <serenity.h>
|
# include <serenity.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
# include <sys/ucred.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Core::Stream {
|
namespace Core::Stream {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue