Skip to content

Commit

Permalink
mfu: support aarch64
Browse files Browse the repository at this point in the history
aarch64 kernel is not found SYS_getdents.
If SYS_getdents is not defined, use sys_getdents64.

Signed-off-by: Toyohisa Kameyama <kameyama@riken.jp>
  • Loading branch information
Toyohisa Kameyama authored and adammoody committed Sep 28, 2020
1 parent c238903 commit 66c5273
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/mfu_flist_walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ static void walk_getdents_process_dir(const char* dir, CIRCLE_handle* handle)
return;
}

#if !defined(SYS_getdents) && defined(SYS_getdents64)
#define SYS_getdents SYS_getdents64
#endif
/* Read all directory entries */
while (1) {
/* execute system call to get block of directory entries */
Expand Down

0 comments on commit 66c5273

Please sign in to comment.