mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
LibCore: Make FreeBSD build SerenityOS
This commit is contained in:
parent
4f716caa33
commit
41765895a8
Notes:
sideshowbarker
2024-07-17 18:38:43 +09:00
Author: https://github.com/iah
Commit: 41765895a8
Pull-request: https://github.com/SerenityOS/serenity/pull/12521
Reviewed-by: https://github.com/MaxWipfli ✅
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/trflynn89
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