mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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();
|
||||
|
||||
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) {
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
#ifdef __serenity__
|
||||
# include <serenity.h>
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
# include <sys/ucred.h>
|
||||
#endif
|
||||
|
||||
namespace Core::Stream {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue