From: Markos Chandras <markos.chand...@imgtec.com> Signed-off-by: Markos Chandras <markos.chand...@imgtec.com> --- libc/sysdeps/linux/common/open64.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index c1f5400..cb43af6 100644 --- a/libc/sysdeps/linux/common/open64.c +++ b/libc/sysdeps/linux/common/open64.c @@ -34,11 +34,18 @@ int open64 (const char *file, int oflag, ...) #ifdef __UCLIBC_HAS_THREADS_NATIVE__ if (SINGLE_THREAD_P) +#if defined(__NR_openat) && !defined(__NR_open) + return INLINE_SYSCALL (openat, 4, AT_FDCWD, file, oflag | O_LARGEFILE, mode); +#else return INLINE_SYSCALL (open, 3, file, oflag | O_LARGEFILE, mode); +#endif int oldtype = LIBC_CANCEL_ASYNC (); - +#if defined(__NR_openat) && !defined(__NR_open) + int result = INLINE_SYSCALL (openat, 4, AT_FDCWD, file, oflag | O_LARGEFILE, mode); +#else int result = INLINE_SYSCALL (open, 3, file, oflag | O_LARGEFILE, mode); +#endif LIBC_CANCEL_RESET (oldtype); -- 1.8.0 _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc