From: Alistair Francis Date: Wed, 8 Jul 2020 14:49:40 +0000 (-0700) Subject: RISC-V: Cleanup some of the sysdep.h code X-Git-Tag: glibc-2.33~540 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4875afe5526efe86478abe33e8b1320969d766d5;p=thirdparty%2Fglibc.git RISC-V: Cleanup some of the sysdep.h code Remove a duplicate inclusion of which is already pulled via , and the inclusion of whose definition of `__set_errno' is not needed here. Reviewed-by: Maciej W. Rozycki --- diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 83e4adf6a23..fbb3a02bbd6 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -22,6 +22,9 @@ #include #include +#undef SYS_ify +#define SYS_ify(syscall_name) __NR_##syscall_name + #ifdef __ASSEMBLER__ # include @@ -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 -#endif - -#include - -#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