Skip to content

Commit

Permalink
[ANDROID] Try to fix this f***** android build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Aug 11, 2024
1 parent 3c98231 commit 0cf5179
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libtools/myalign.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
# ifdef __USE_XOPEN2K8
#if defined(__USE_XOPEN2K8) || defined(ANDROID)
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;
Expand Down
4 changes: 2 additions & 2 deletions src/libtools/myalign64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
# ifdef __USE_XOPEN2K8
#if defined(__USE_XOPEN2K8) || defined(ANDROID)
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;
Expand Down Expand Up @@ -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;
#ifdef __USE_XOPEN2K8
#if defined(__USE_XOPEN2K8) || defined(ANDROID)
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;
Expand Down

0 comments on commit 0cf5179

Please sign in to comment.