In file included from dirent.c:1:0:
defs.h:685:38: error: redefinition of ‘sys_getdents’
# define SYS_FUNC_NAME(syscall_name) sys_ ## syscall_name
^
defs.h:688:36: note: in expansion of macro ‘SYS_FUNC_NAME’
#define SYS_FUNC(syscall_name) int SYS_FUNC_NAME(syscall_name)(struct tcb *tcp)
^
dirent.c:138:1: note: in expansion of macro ‘SYS_FUNC’
SYS_FUNC(getdents64)
^
defs.h:685:38: note: previous definition of ‘sys_getdents’ was here
# define SYS_FUNC_NAME(syscall_name) sys_ ## syscall_name
^
defs.h:688:36: note: in expansion of macro ‘SYS_FUNC_NAME’
#define SYS_FUNC(syscall_name) int SYS_FUNC_NAME(syscall_name)(struct tcb *tcp)
^
dirent.c:60:1: note: in expansion of macro ‘SYS_FUNC’
SYS_FUNC(getdents)
^