mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-25 13:51:04 +08:00
RISC-V: Cleanup some of the sysdep.h code
Remove a duplicate inclusion of <sysdeps/unix/sysdep.h> which is already pulled via <sysdeps/unix/sysv/linux/generic/sysdep.h>, and the inclusion of <errno.h> whose definition of `__set_errno' is not needed here. Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
This commit is contained in:
parent
2b09ebeee7
commit
4875afe552
@ -22,6 +22,9 @@
|
||||
#include <sysdeps/unix/sysv/linux/generic/sysdep.h>
|
||||
#include <tls.h>
|
||||
|
||||
#undef SYS_ify
|
||||
#define SYS_ify(syscall_name) __NR_##syscall_name
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
# include <sys/asm.h>
|
||||
@ -107,19 +110,7 @@
|
||||
# undef ret_ERRVAL
|
||||
# define ret_ERRVAL ret
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* In order to get __set_errno() definition in INLINE_SYSCALL. */
|
||||
#ifndef __ASSEMBLER__
|
||||
# include <errno.h>
|
||||
#endif
|
||||
|
||||
#include <sysdeps/unix/sysdep.h>
|
||||
|
||||
#undef SYS_ify
|
||||
#define SYS_ify(syscall_name) __NR_##syscall_name
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
#else /* !__ASSEMBLER__ */
|
||||
|
||||
# define VDSO_NAME "LINUX_4.15"
|
||||
# define VDSO_HASH 182943605
|
||||
|
Loading…
x
Reference in New Issue
Block a user