From 71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Netto Date: Wed, 19 Oct 2022 19:14:29 -0300 Subject: Linux: Remove generic sysdep The includes chain is added on each architecture sysdep.h and the __NR__llseek hack is moved to lseek.c and lseek64.c. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/lseek.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/unix/sysv/linux/lseek.c') diff --git a/sysdeps/unix/sysv/linux/lseek.c b/sysdeps/unix/sysv/linux/lseek.c index 148503d..3f10c8d 100644 --- a/sysdeps/unix/sysv/linux/lseek.c +++ b/sysdeps/unix/sysv/linux/lseek.c @@ -41,6 +41,10 @@ static inline off_t lseek_overflow (loff_t res) off_t __lseek (int fd, off_t offset, int whence) { +#ifdef __NR_llseek +# define __NR__llseek __NR_llseek +#endif + # ifdef __NR__llseek loff_t res; int rc = INLINE_SYSCALL_CALL (_llseek, fd, -- cgit v1.1