From f97763cacd876e378677405309d63f45a3f9dea7 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 13 Sep 2024 17:59:35 +0200 Subject: [PATCH] [PANDORA] Fixed OpenPandora build --- src/libtools/myalign.c | 4 +++- src/libtools/myalign64.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libtools/myalign.c b/src/libtools/myalign.c index cd771293..314eaf35 100755 --- a/src/libtools/myalign.c +++ b/src/libtools/myalign.c @@ -938,7 +938,7 @@ void UnalignStat(const void* source, void* dest) i386st->st_size = st->st_size; i386st->st_blksize = st->st_blksize; i386st->st_blocks = st->st_blocks; - #if defined(__USE_XOPEN2K8) || defined(ANDROID) + #if defined(__USE_XOPEN2K8) || defined(ANDROID) || defined(PANDORA) i386st->st_atime_sec = st->st_atim.tv_sec; i386st->st_atime_nsec = st->st_atim.tv_nsec; i386st->st_mtime_sec = st->st_mtim.tv_sec; @@ -970,7 +970,9 @@ void UnalignStatFS(const void* source, void* dest) memcpy(&i386st->f_fsid, &st->f_fsid, sizeof(i386st->f_fsid)); i386st->f_namelen = st->f_namelen; i386st->f_frsize = st->f_frsize; + #ifndef PANDORA i386st->f_flags = st->f_flags; + #endif i386st->f_spare[0] = st->f_spare[0]; i386st->f_spare[1] = st->f_spare[1]; i386st->f_spare[2] = st->f_spare[2]; diff --git a/src/libtools/myalign64.c b/src/libtools/myalign64.c index 2c8d12a1..ad109a4d 100755 --- a/src/libtools/myalign64.c +++ b/src/libtools/myalign64.c @@ -39,7 +39,7 @@ void UnalignStat64(const void* source, void* dest) i386st->st_size = st->st_size; i386st->st_blksize = st->st_blksize; i386st->st_blocks = st->st_blocks; -#if defined(__USE_XOPEN2K8) || defined(ANDROID) +#if defined(__USE_XOPEN2K8) || defined(ANDROID) || defined(PANDORA) i386st->st_atime = st->st_atim.tv_sec; i386st->st_atime_nsec = st->st_atim.tv_nsec; i386st->st_mtime = st->st_mtim.tv_sec; @@ -76,7 +76,7 @@ void AlignStat64(const void* source, void* dest) st->st_size = i386st->st_size; st->st_blksize = i386st->st_blksize; st->st_blocks = i386st->st_blocks; -#if defined(__USE_XOPEN2K8) || defined(ANDROID) +#if defined(__USE_XOPEN2K8) || defined(ANDROID) || defined(PANDORA) st->st_atim.tv_sec = i386st->st_atime; st->st_atim.tv_nsec = i386st->st_atime_nsec; st->st_mtim.tv_sec = i386st->st_mtime;