Commit ee84b8b400 (linux: posix_fadvise: use new SYSCALL_ALIGN_64BIT) removed posix_fadvise implementation for xtensa, since xtensa does not define __NR_fadvise64. Redefine __NR_fadvise64 as __NR_fadvise64_64 to restore posix_fadvise.
Cc: Mike Frysinger <[email protected]> Signed-off-by: Baruch Siach <[email protected]> --- libc/sysdeps/linux/common/posix_fadvise.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/sysdeps/linux/common/posix_fadvise.c b/libc/sysdeps/linux/common/posix_fadvise.c index d3e1bd4e8bd0..951f2323013a 100644 --- a/libc/sysdeps/linux/common/posix_fadvise.c +++ b/libc/sysdeps/linux/common/posix_fadvise.c @@ -10,6 +10,10 @@ #include <sys/syscall.h> +#if !defined(__NR_fadvise64) && defined(__NR_fadvise64_64) +#define __NR_fadvise64 __NR_fadvise64_64 +#endif + #ifdef __NR_fadvise64 # include <fcntl.h> # include <endian.h> -- 1.8.5.2 _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
