diff --git a/src/arch/x86/linux/syscall_tbl32.cc b/src/arch/x86/linux/syscall_tbl32.cc index 50d0969b0f..db7015124f 100644 --- a/src/arch/x86/linux/syscall_tbl32.cc +++ b/src/arch/x86/linux/syscall_tbl32.cc @@ -261,7 +261,11 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 218, "mincore" }, { 219, "madvise", ignoreFunc }, { 220, "madvise1" }, +#if defined(SYS_getdents64) + { 221, "getdents64", getdents64Func }, +#else { 221, "getdents64" }, +#endif { 222, "fcntl64" }, { 223, "unused" }, { 224, "gettid", gettidFunc }, diff --git a/src/arch/x86/linux/syscall_tbl64.cc b/src/arch/x86/linux/syscall_tbl64.cc index be82437318..94837cd080 100644 --- a/src/arch/x86/linux/syscall_tbl64.cc +++ b/src/arch/x86/linux/syscall_tbl64.cc @@ -257,7 +257,11 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 214, "epoll_ctl_old" }, { 215, "epoll_wait_old" }, { 216, "remap_file_pages" }, +#if defined(SYS_getdents64) + { 217, "getdents64", getdents64Func }, +#else { 217, "getdents64" }, +#endif { 218, "set_tid_address", setTidAddressFunc }, { 219, "restart_syscall" }, { 220, "semtimedop" },