mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
AK+Lagom: Make it possible to build for iOS
This commit makes it possible to build AK and most of Lagom for iOS, based on the work for the Ladybird build demoed on discord: https://discord.com/channels/830522505605283862/830525031720943627/1211987732646068314
This commit is contained in:
committed by
Andrew Kaster
parent
2dce453f11
commit
fd694e8672
@@ -14,7 +14,7 @@
|
||||
|
||||
#if defined(AK_OS_SERENITY)
|
||||
# include <serenity.h>
|
||||
#elif defined(AK_OS_BSD_GENERIC)
|
||||
#elif !defined(AK_OS_IOS) && defined(AK_OS_BSD_GENERIC)
|
||||
# include <sys/disk.h>
|
||||
#elif defined(AK_OS_LINUX)
|
||||
# include <linux/fs.h>
|
||||
@@ -230,7 +230,7 @@ ErrorOr<void> copy_file(StringView destination_path, StringView source_path, str
|
||||
|
||||
if (has_flag(preserve_mode, PreserveMode::Timestamps)) {
|
||||
struct timespec times[2] = {
|
||||
#ifdef AK_OS_MACOS
|
||||
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
|
||||
source_stat.st_atimespec,
|
||||
source_stat.st_mtimespec,
|
||||
#else
|
||||
@@ -278,7 +278,7 @@ ErrorOr<void> copy_directory(StringView destination_path, StringView source_path
|
||||
|
||||
if (has_flag(preserve_mode, PreserveMode::Timestamps)) {
|
||||
struct timespec times[2] = {
|
||||
#ifdef AK_OS_MACOS
|
||||
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
|
||||
source_stat.st_atimespec,
|
||||
source_stat.st_mtimespec,
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user